Index: boost/numeric/ublas/io.hpp =================================================================== --- boost/numeric/ublas/io.hpp (revision 58644) +++ boost/numeric/ublas/io.hpp (working copy) @@ -19,27 +19,40 @@ #include -namespace boost { namespace numeric { namespace ublas { +namespace boost +{ + namespace numeric + { + namespace ublas + { - template - // BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it. - std::basic_ostream &operator << (std::basic_ostream &os, - const vector_expression &v) { - typedef typename VE::size_type size_type; - size_type size = v ().size (); - std::basic_ostringstream > s; - s.flags (os.flags ()); - s.imbue (os.getloc ()); - s.precision (os.precision ()); - s << '[' << size << "]("; - if (size > 0) - s << v () (0); - for (size_type i = 1; i < size; ++ i) - s << ',' << v () (i); - s << ')'; - return os << s.str ().c_str (); - } + template + std::basic_ostream &operator << + (std::basic_ostream &os, const vector_expression &v) + { + typedef typename VE::size_type size_type; + size_type size = v ().size (); + + std::basic_ostringstream > s; + + s.flags (os.flags ()); + s.imbue (os.getloc ()); + s.precision (os.precision ()); + + s << '[' << size << "]("; + + if (size > 0) s << v () (0); + + for (size_type i = 1; i < size; ++ i) + { + s << ',' << v () (i); + s << ')'; + } + + return os << s.str ().c_str (); + } + template // BOOST_UBLAS_INLINE This function seems to be big. So we do not let the compiler inline it. std::basic_istream &operator >> (std::basic_istream &is,