cat <<EOF >test.cc #include <locale> #include <string> #include <boost/format.hpp> int main() { boost::format a("foo", std::locale()); boost::format b(std::string("foo"), std::locale()); return 0; } EOF g++ -Wall test.cc
*************** There are actually two lines that need to be fixed, not just the one I noticed earlier. Updated diff: --- /usr/include/boost/format/format_implementation.hpp 2005-07-13 10:40:24.000000000 -0500 +++ /home/tbrownaw/format_implementation.hpp 2006-07-05 13:46:23.000000000 -0500 @@ -37,7 +37,7 @@ template< class Ch, class Tr, class Alloc> basic_format<Ch, Tr, Alloc>:: basic_format(const Ch* str, const std::locale & loc) : style_(0), cur_arg_(0), num_args_(0), dumped_(false), - loc_(loc), exceptions_(io::all_error_bits) + exceptions_(io::all_error_bits), loc_(loc) { if(str) parse( str ); } @@ -45,7 +45,7 @@ template< class Ch, class Tr, class Alloc> basic_format<Ch, Tr, Alloc>:: basic_format(const string_type& s, const std::locale & loc) : style_(0), cur_arg_(0), num_args_(0), dumped_(false), - loc_(loc), exceptions_(io::all_error_bits) + exceptions_(io::all_error_bits), loc_(loc) { parse(s); } -- compile warning about initialization order https://launchpad.net/bugs/24069 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs