]> www.ginac.de Git - cln.git/blobdiff - include/cln/sfloat_io.h
Replace CL_REQUIRE/CL_PROVIDE(cl_I_ring) with portable code.
[cln.git] / include / cln / sfloat_io.h
index be9ae1473526d60e36879cd9a5f3fd5c23f6d724..ddb46a4e63f674bc7a34ba806662dd058cd81650 100644 (file)
@@ -8,19 +8,19 @@
 
 namespace cln {
 
-inline cl_istream operator>> (cl_istream stream, cl_SF& result)
+inline std::istream& operator>> (std::istream& stream, cl_SF& result)
 {
        extern cl_read_flags cl_SF_read_flags;
-       extern const cl_F read_float (cl_istream, const cl_read_flags&);
+       extern const cl_F read_float (std::istream&, const cl_read_flags&);
        result = As(cl_SF)(read_float(stream,cl_SF_read_flags));
        return stream;
 }
 
 // The following does strictly the same as the general `fprint' for floats.
 // It is here only so that people don't need to include <cln/float_io.h>.
-inline void fprint (cl_ostream stream, const cl_SF& x)
+inline void fprint (std::ostream& stream, const cl_SF& x)
 {
-       extern void print_float (cl_ostream stream, const cl_print_flags& flags, const cl_F& z);
+       extern void print_float (std::ostream& stream, const cl_print_flags& flags, const cl_F& z);
        extern cl_print_flags default_print_flags;
        print_float(stream,default_print_flags,x);
 }