Boost logo

Boost Users :

From: Bernhard Glück (yg-boost-users_at_[hidden])
Date: 2003-04-16 13:46:54


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...


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net