Boost logo

Boost-Build :

Subject: [Boost-build] Using BOOST with VC10 - ambiguous calls (BOOST or VS10-STL)
From: Ishai Hunger (ishihunger_at_[hidden])
Date: 2012-08-16 06:53:51


Hello,

Attempting to compile Freeling using the BOOST DLLs, after a successful
BOOST build, I get many variations of this error below with Visual Studio
10.

1>c:\users\ishaihu\desktop\freeling-3.0-beta1\src\libfreeling\ukb\csentence.cc(67):
error C2668: 'boost::tuples::tie' : ambiguous call to overloaded function

The alternatives are either from boost::tuples::tuple or std::tr1::tuple ,
std here being the STL that ships with VS10.

How can I make the compiler understand that whenever the disambiguity
arises, it should compile against BOOST? I tried to cancel including the
STL altogether, but then I begin getting errors like "fatal error C1083:
Cannot open include file: 'string'" (in headers including <string>).

Many thanks,
Ishai.

1>c:\users\ishaihu\desktop\freeling-3.0-beta1\src\libfreeling\ukb\csentence.cc(67):
error C2668: 'boost::tuples::tie' : ambiguous call to overloaded function
1>
 c:\users\ishaihu\desktop\freeling-3.0-beta1\boost_1_49_0\boost\tuple\detail\tuple_basic.hpp(873):
could be 'boost::tuples::tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9>
boost::tuples::tie<ukb::Kb_vertex_t,bool>(unsigned int &,bool &)'
1> with
1> [
1> T0=unsigned int &,
1> T1=bool &,
1> T2=boost::tuples::detail::tie_traits<void>::type,
1> T3=boost::tuples::detail::tie_traits<void>::type,
1> T4=boost::tuples::detail::tie_traits<void>::type,
1> T5=boost::tuples::detail::tie_traits<void>::type,
1> T6=boost::tuples::detail::tie_traits<void>::type,
1> T7=boost::tuples::detail::tie_traits<void>::type,
1> T8=boost::tuples::detail::tie_traits<void>::type,
1> T9=boost::tuples::detail::tie_traits<void>::type
1> ]
1> c:\program files\microsoft visual studio
10.0\vc\include\xxtuple1(34): or
'std::tr1::tuple<_Arg0,_Arg1,_Arg2,_Arg3,_Arg4,_Arg5,_Arg6,_Arg7,_Arg8,_Arg9>
std::tr1::tie<ukb::Kb_vertex_t,bool>(unsigned int &,bool &)'
1> with
1> [
1> _Arg0=unsigned int &,
1> _Arg1=bool &,
1> _Arg2=std::tr1::_Nil,
1> _Arg3=std::tr1::_Nil,
1> _Arg4=std::tr1::_Nil,
1> _Arg5=std::tr1::_Nil,
1> _Arg6=std::tr1::_Nil,
1> _Arg7=std::tr1::_Nil,
1> _Arg8=std::tr1::_Nil,
1> _Arg9=std::tr1::_Nil
1> ]
1> while trying to match the argument list '(ukb::Kb_vertex_t,
bool)'



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk