$NetBSD: patch-ao,v 1.1 2004/01/11 15:58:45 cjep Exp $ --- cxx/ncvalues.cpp.orig 1998-12-22 18:21:49.000000000 +0000 +++ cxx/ncvalues.cpp @@ -8,5 +8,5 @@ *********************************************************************/ -#include // for debugging +#include // for debugging #include "ncvalues.h" @@ -26,5 +26,5 @@ long NcValues::num( void ) } -ostream& operator<< (ostream& os, const NcValues& vals) +std::ostream& operator<< (std::ostream& os, const NcValues& vals) { return vals.print(os); @@ -245,5 +245,5 @@ inline char* NcValues_char::as_string( l } -ostream& NcValues_short::print(ostream& os) const +std::ostream& NcValues_short::print(std::ostream& os) const { for(int i = 0; i < the_number - 1; i++) @@ -254,5 +254,5 @@ ostream& NcValues_short::print(ostream& } -ostream& NcValues_int::print(ostream& os) const +std::ostream& NcValues_int::print(std::ostream& os) const { for(int i = 0; i < the_number - 1; i++) @@ -263,5 +263,5 @@ ostream& NcValues_int::print(ostream& os } -ostream& NcValues_nclong::print(ostream& os) const +std::ostream& NcValues_nclong::print(std::ostream& os) const { for(int i = 0; i < the_number - 1; i++) @@ -272,5 +272,5 @@ ostream& NcValues_nclong::print(ostream& } -ostream& NcValues_long::print(ostream& os) const +std::ostream& NcValues_long::print(std::ostream& os) const { for(int i = 0; i < the_number - 1; i++) @@ -281,5 +281,5 @@ ostream& NcValues_long::print(ostream& o } -ostream& NcValues_ncbyte::print(ostream& os) const +std::ostream& NcValues_ncbyte::print(std::ostream& os) const { for(int i = 0; i < the_number - 1; i++) @@ -290,5 +290,5 @@ ostream& NcValues_ncbyte::print(ostream& } -ostream& NcValues_char::print(ostream& os) const +std::ostream& NcValues_char::print(std::ostream& os) const { os << '"'; @@ -303,7 +303,7 @@ ostream& NcValues_char::print(ostream& o } -ostream& NcValues_float::print(ostream& os) const +std::ostream& NcValues_float::print(std::ostream& os) const { - long save=os.flags(); + std::ostream::fmtflags save=os.flags(); os.precision(7); for(int i = 0; i < the_number - 1; i++) @@ -315,7 +315,7 @@ ostream& NcValues_float::print(ostream& } -ostream& NcValues_double::print(ostream& os) const +std::ostream& NcValues_double::print(std::ostream& os) const { - long save=os.flags(); + std::ostream::fmtflags save=os.flags(); os.precision(15); for(int i = 0; i < the_number - 1; i++)