Hi ! Today my company switched over to MSVC 1310 ( Visual Studio .NET 2003 ) We make heavy use of some boost libraries. And now we have a real showstopper, boost::format does nto compile anymore without errors. Are there any fixes for that ? we use boost_1_30_0 built using the VC7 toolset ( from MSVC 7.1 ) Here is the code passage that causes errors ( but many others do the same ) // Generate a unique dummy name. boost::format uniqueName("Unknown%1%"); int idNumber = sNames.size() + sIdCounter; // Just an integer. uniqueName % idNumber; Here are the compiler errors: d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2065: 'disambiguater' : undeclared identifier d:\Sdk\boost\boost\format\feed_args.hpp(140) : see reference to function template instantiation 'void boost::io::detail::`anonymous-namespace'::put_head<char,std::char_traits<char>,T>(std::basic_ostream<_Elem,_Traits> &,const T &)' being compiled with [ T=int, _Elem=char, _Traits=std::char_traits<char> ] d:\Sdk\boost\boost\format\feed_args.hpp(237) : see reference to function template instantiation 'void boost::io::detail::`anonymous-namespace'::put<Ch,Tr,T>(T,const boost::io::detail::format_item<Ch,Tr> &,std::basic_string<_Elem,_Traits,_Ax> &,std::basic_ostringstream<_Elem,_Traits,_Alloc> &)' being compiled with [ Ch=boost::basic_format<char>::CharT, Tr=boost::basic_format<char>::Traits, T=const int &, _Elem=char, _Traits=std::char_traits<char>, _Ax=std::allocator<char>, _Alloc=std::allocator<char> ] d:\Sdk\boost\boost\format\feed_args.hpp(246) : see reference to function template instantiation 'void boost::io::detail::distribute<Ch,Tr,T>(boost::basic_format<Ch> &,T)' being compiled with [ Ch=boost::basic_format<char>::CharT, Tr=boost::basic_format<char>::Traits, T=const int & ] d:\Sdk\boost\boost\format\format_class.hpp(63) : see reference to function template instantiation 'boost::basic_format<Ch> &boost::io::detail::feed<boost::basic_format<Ch>::CharT,boost::basic_format<Ch>::Traits,const T&>(boost::basic_format<Ch> &,const int)' being compiled with [ Ch=char, T=int ] d:\Work\FakedReality\Source\Core\Engine\Identifier.cpp(87) : see reference to function template instantiation 'boost::basic_format<Ch> &boost::basic_format<Ch>::operator %<int>(const T &)' being compiled with [ Ch=char, T=int ] d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2275: 'Ch' : illegal use of this type as an expression d:\Sdk\boost\boost\format\feed_args.hpp(140) : see declaration of 'Ch' d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2039: 'put_head' : is not a member of 'operator``global namespace''' d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2780: 'void boost::io::detail::`anonymous-namespace'::put_head(std::basic_ostream<Ch,Tr> &,const T &)' : expects 2 arguments - 3 provided d:\Sdk\boost\boost\format\feed_args.hpp(78) : see declaration of 'boost::io::detail::`anonymous-namespace'::put_head' d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C2275: 'Ch' : illegal use of this type as an expression d:\Sdk\boost\boost\format\feed_args.hpp(155) : see declaration of 'Ch' d:\Sdk\boost\boost\format\feed_args.hpp(155) : see reference to function template instantiation 'void boost::io::detail::`anonymous-namespace'::put_last<char,std::char_traits<char>,T>(std::basic_ostream<_Elem,_Traits> &,const T &)' being compiled with [ T=int, _Elem=char, _Traits=std::char_traits<char> ] d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C2039: 'put_last' : is not a member of 'operator``global namespace''' d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C2780: 'void boost::io::detail::`anonymous-namespace'::put_last(std::basic_ostream<Ch,Tr> &,const T &)' : expects 2 arguments - 3 provided d:\Sdk\boost\boost\format\feed_args.hpp(82) : see declaration of 'boost::io::detail::`anonymous-namespace'::put_last' d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C3861: 'disambiguater': identifier not found, even with argument-dependent lookup Framework.cpp d:\Sdk\boost\luabind\object.hpp(153) : error C2027: use of undefined type 'luabind::object' d:\Sdk\boost\luabind\object.hpp(90) : see declaration of 'luabind::object' d:\Sdk\boost\luabind\object.hpp(177) : see reference to class template instantiation 'luabind::detail::proxy_caller<Tuple>' being compiled Actor.cpp d:\Sdk\boost\luabind\object.hpp(153) : error C2027: use of undefined type 'luabind::object' d:\Sdk\boost\luabind\object.hpp(90) : see declaration of 'luabind::object' d:\Sdk\boost\luabind\object.hpp(177) : see reference to class template instantiation 'luabind::detail::proxy_caller<Tuple>' being compiled Log.cpp d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2065: 'disambiguater' : undeclared identifier d:\Sdk\boost\boost\format\feed_args.hpp(140) : see reference to function template instantiation 'void boost::io::detail::`anonymous-namespace'::put_head<char,std::char_traits<char>,T>(std::basic_ostream<_Elem,_Traits> &,const T &)' being compiled with [ T=int, _Elem=char, _Traits=std::char_traits<char> ] d:\Sdk\boost\boost\format\feed_args.hpp(237) : see reference to function template instantiation 'void boost::io::detail::`anonymous-namespace'::put<Ch,Tr,T>(T,const boost::io::detail::format_item<Ch,Tr> &,std::basic_string<_Elem,_Traits,_Ax> &,std::basic_ostringstream<_Elem,_Traits,_Alloc> &)' being compiled with [ Ch=boost::basic_format<char>::CharT, Tr=boost::basic_format<char>::Traits, T=const int &, _Elem=char, _Traits=std::char_traits<char>, _Ax=std::allocator<char>, _Alloc=std::allocator<char> ] d:\Sdk\boost\boost\format\feed_args.hpp(246) : see reference to function template instantiation 'void boost::io::detail::distribute<Ch,Tr,T>(boost::basic_format<Ch> &,T)' being compiled with [ Ch=boost::basic_format<char>::CharT, Tr=boost::basic_format<char>::Traits, T=const int & ] d:\Sdk\boost\boost\format\format_class.hpp(63) : see reference to function template instantiation 'boost::basic_format<Ch> &boost::io::detail::feed<boost::basic_format<Ch>::CharT,boost::basic_format<Ch>::Traits,const T&>(boost::basic_format<Ch> &,const int)' being compiled with [ Ch=char, T=int ] d:\Work\FakedReality\Source\Core\Debug\Log.cpp(114) : see reference to function template instantiation 'boost::basic_format<Ch> &boost::basic_format<Ch>::operator %<int>(const T &)' being compiled with [ Ch=char, T=int ] d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2275: 'Ch' : illegal use of this type as an expression d:\Sdk\boost\boost\format\feed_args.hpp(140) : see declaration of 'Ch' d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2039: 'put_head' : is not a member of 'operator``global namespace''' d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2780: 'void boost::io::detail::`anonymous-namespace'::put_head(std::basic_ostream<Ch,Tr> &,const T &)' : expects 2 arguments - 3 provided d:\Sdk\boost\boost\format\feed_args.hpp(78) : see declaration of 'boost::io::detail::`anonymous-namespace'::put_head' d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C2275: 'Ch' : illegal use of this type as an expression d:\Sdk\boost\boost\format\feed_args.hpp(155) : see declaration of 'Ch' d:\Sdk\boost\boost\format\feed_args.hpp(155) : see reference to function template instantiation 'void boost::io::detail::`anonymous-namespace'::put_last<char,std::char_traits<char>,T>(std::basic_ostream<_Elem,_Traits> &,const T &)' being compiled with [ T=int, _Elem=char, _Traits=std::char_traits<char> ] d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C2039: 'put_last' : is not a member of 'operator``global namespace''' d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C2780: 'void boost::io::detail::`anonymous-namespace'::put_last(std::basic_ostream<Ch,Tr> &,const T &)' : expects 2 arguments - 3 provided d:\Sdk\boost\boost\format\feed_args.hpp(82) : see declaration of 'boost::io::detail::`anonymous-namespace'::put_last' d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C3861: 'disambiguater': identifier not found, even with argument-dependent lookup State.cpp d:\Sdk\boost\luabind\object.hpp(153) : error C2027: use of undefined type 'luabind::object' d:\Sdk\boost\luabind\object.hpp(90) : see declaration of 'luabind::object' d:\Sdk\boost\luabind\object.hpp(177) : see reference to class template instantiation 'luabind::detail::proxy_caller<Tuple>' being compiled d:\Sdk\boost\boost\iterator_adaptors.hpp(1409) : see reference to class template instantiation 'boost::filter_iterator_generator<Predicate,Iterator,Value,Reference,Pointer,Category,Distance>' being compiled d:\Work\FakedReality\Source\Core\Scripting\State.cpp(303) : error C3861: 'lua_dostring': identifier not found, even with argument-dependent lookup Script.cpp d:\Sdk\boost\luabind\object.hpp(153) : error C2027: use of undefined type 'luabind::object' d:\Sdk\boost\luabind\object.hpp(90) : see declaration of 'luabind::object' d:\Sdk\boost\luabind\object.hpp(177) : see reference to class template instantiation 'luabind::detail::proxy_caller<Tuple>' being compiled IScriptExport.cpp d:\Sdk\boost\luabind\object.hpp(153) : error C2027: use of undefined type 'luabind::object' d:\Sdk\boost\luabind\object.hpp(90) : see declaration of 'luabind::object' d:\Sdk\boost\luabind\object.hpp(177) : see reference to class template instantiation 'luabind::detail::proxy_caller<Tuple>' being compiled Type.cpp d:\Sdk\boost\luabind\object.hpp(153) : error C2027: use of undefined type 'luabind::object' d:\Sdk\boost\luabind\object.hpp(90) : see declaration of 'luabind::object' d:\Sdk\boost\luabind\object.hpp(177) : see reference to class template instantiation 'luabind::detail::proxy_caller<Tuple>' being compiled IConverter.cpp d:\Sdk\boost\luabind\object.hpp(153) : error C2027: use of undefined type 'luabind::object' d:\Sdk\boost\luabind\object.hpp(90) : see declaration of 'luabind::object' d:\Sdk\boost\luabind\object.hpp(177) : see reference to class template instantiation 'luabind::detail::proxy_caller<Tuple>' being compiled Version.cpp d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2065: 'disambiguater' : undeclared identifier d:\Sdk\boost\boost\format\feed_args.hpp(140) : see reference to function template instantiation 'void boost::io::detail::`anonymous-namespace'::put_head<char,std::char_traits<char>,T>(std::basic_ostream<_Elem,_Traits> &,const T &)' being compiled with [ T=int, _Elem=char, _Traits=std::char_traits<char> ] d:\Sdk\boost\boost\format\feed_args.hpp(237) : see reference to function template instantiation 'void boost::io::detail::`anonymous-namespace'::put<Ch,Tr,T>(T,const boost::io::detail::format_item<Ch,Tr> &,std::basic_string<_Elem,_Traits,_Ax> &,std::basic_ostringstream<_Elem,_Traits,_Alloc> &)' being compiled with [ Ch=boost::basic_format<char>::CharT, Tr=boost::basic_format<char>::Traits, T=const int &, _Elem=char, _Traits=std::char_traits<char>, _Ax=std::allocator<char>, _Alloc=std::allocator<char> ] d:\Sdk\boost\boost\format\feed_args.hpp(246) : see reference to function template instantiation 'void boost::io::detail::distribute<Ch,Tr,T>(boost::basic_format<Ch> &,T)' being compiled with [ Ch=boost::basic_format<char>::CharT, Tr=boost::basic_format<char>::Traits, T=const int & ] d:\Sdk\boost\boost\format\format_class.hpp(63) : see reference to function template instantiation 'boost::basic_format<Ch> &boost::io::detail::feed<boost::basic_format<Ch>::CharT,boost::basic_format<Ch>::Traits,const T&>(boost::basic_format<Ch> &,const int)' being compiled with [ Ch=char, T=int ] d:\Work\FakedReality\Source\Core\Platform\Win32\Version.cpp(38) : see reference to function template instantiation 'boost::basic_format<Ch> &boost::basic_format<Ch>::operator %<int>(const T &)' being compiled with [ Ch=char, T=int ] d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2275: 'Ch' : illegal use of this type as an expression d:\Sdk\boost\boost\format\feed_args.hpp(140) : see declaration of 'Ch' d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2039: 'put_head' : is not a member of 'operator``global namespace''' d:\Sdk\boost\boost\format\feed_args.hpp(79) : error C2780: 'void boost::io::detail::`anonymous-namespace'::put_head(std::basic_ostream<Ch,Tr> &,const T &)' : expects 2 arguments - 3 provided d:\Sdk\boost\boost\format\feed_args.hpp(78) : see declaration of 'boost::io::detail::`anonymous-namespace'::put_head' d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C2275: 'Ch' : illegal use of this type as an expression d:\Sdk\boost\boost\format\feed_args.hpp(155) : see declaration of 'Ch' d:\Sdk\boost\boost\format\feed_args.hpp(155) : see reference to function template instantiation 'void boost::io::detail::`anonymous-namespace'::put_last<char,std::char_traits<char>,T>(std::basic_ostream<_Elem,_Traits> &,const T &)' being compiled with [ T=int, _Elem=char, _Traits=std::char_traits<char> ] d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C2039: 'put_last' : is not a member of 'operator``global namespace''' d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C2780: 'void boost::io::detail::`anonymous-namespace'::put_last(std::basic_ostream<Ch,Tr> &,const T &)' : expects 2 arguments - 3 provided d:\Sdk\boost\boost\format\feed_args.hpp(82) : see declaration of 'boost::io::detail::`anonymous-namespace'::put_last' d:\Sdk\boost\boost\format\feed_args.hpp(83) : error C3861: 'disambiguater': identifier not found, even with argument-dependent lookup Generating Code...
Why are you posting to a Borland NG. Try a Microsoft NG or a Boost NG. Bernhard Glück wrote:
Hi !
Today my company switched over to MSVC 1310 ( Visual Studio .NET 2003 ) We make heavy use of some boost libraries. And now we have a real showstopper, boost::format does nto compile anymore without errors. Are there any fixes for that ? we use boost_1_30_0 built using the VC7 toolset ( from MSVC 7.1 )
Edward Diener wrote:
Why are you posting to a Borland NG. Try a Microsoft NG or a Boost NG.
Bernhard Glück wrote:
Hi !
Today my company switched over to MSVC 1310 ( Visual Studio .NET 2003 ) We make heavy use of some boost libraries. And now we have a real showstopper, boost::format does nto compile anymore without errors. Are there any fixes for that ? we use boost_1_30_0 built using the VC7 toolset ( from MSVC 7.1 )
Info: <http://www.boost.org> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl> Unsubscribe: <mailto:boost-users-unsubscribe@yahoogroups.com>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Ups sorry, i thought i posted to the offical boost newsgroup / via the GMANE newsgroup interface...... Strange is though , that your reply got to me using a boost header.... ( see subject line ) .... so maybe There is a server error.
My mistake. I tried deleting my message. You are on the correct NG and I fell asleep. Bernhard Glück wrote:
Edward Diener wrote:
Why are you posting to a Borland NG. Try a Microsoft NG or a Boost NG.
Bernhard Glück wrote:
Hi !
Today my company switched over to MSVC 1310 ( Visual Studio .NET 2003 ) We make heavy use of some boost libraries. And now we have a real showstopper, boost::format does nto compile anymore without errors. Are there any fixes for that ? we use boost_1_30_0 built using the VC7 toolset ( from MSVC 7.1 )
Info: <http://www.boost.org> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl> Unsubscribe: <mailto:boost-users-unsubscribe@yahoogroups.com>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Ups sorry, i thought i posted to the offical boost newsgroup / via the GMANE newsgroup interface...... Strange is though , that your reply got to me using a boost header.... ( see subject line ) .... so maybe There is a server error.
------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/W7NydA/hdqFAA/VygGAA/EbFolB/TM ---------------------------------------------------------------------~->
Info: <http://www.boost.org> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl> Unsubscribe: <mailto:boost-users-unsubscribe@yahoogroups.com>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Hi! "Bernhard Glück" <yg-boost-users@m.gmane.org> wrote
Today my company switched over to MSVC 1310 ( Visual Studio .NET 2003 ) We make heavy use of some boost libraries. And now we have a real showstopper, boost::format does nto compile anymore without errors. Are there any fixes for that ? we use boost_1_30_0 built using the VC7 toolset ( from MSVC 7.1 )
I guess that's because of the workaround in feed_args.hpp (ln 73): #if BOOST_WORKAROUND( BOOST_MSVC, BOOST_TESTED_AT(1300)) I'd guess you won't need the workaround for 13.10. If so you should replace BOOST_TESTED_AT(1300) with <= 1300 hth -hg
participants (4)
-
Bernhard Glück
-
Bernhard Glück
-
Edward Diener
-
Holger Grund