Boost logo

Boost :

Subject: [boost] [quickbook] Failure building on trunk
From: Edward Diener (eldiener_at_[hidden])
Date: 2011-08-26 10:36:26


Trying to generate some documentation using the latest on Boost trunk,
the build of quickbook works with gcc but failed using toolset-msvc-10.0
with:

"compile-c-c++
C:\Programming\VersionControl\boost\bin.v2\tools\quickbook\src\msvc-10.0\release\link-static\threading-multi\id_generator.obj
id_generator.cpp
C:\Programming\VersionControl\boost\boost/unordered/detail/buckets.hpp(220)
: error C2668: 'boost::addressof' : ambiguous call to overloaded function

C:\Programming\VersionControl\boost\boost/utility/addressof.hpp(51):
could be 'T *boost::addressof<boost::unordered::detail::bucket<A>>(T &)'
         with
         [

T=boost::unordered::detail::bucket<std::allocator<std::pair<const
std::string,quickbook::id_generator::id>>>,
             A=std::allocator<std::pair<const
std::string,quickbook::id_generator::id>>
         ]
         C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\INCLUDE\xmemory(109): or '_Ty
*std::addressof<boost::unordered::detail::bucket<A>>(_Ty &)' [found
using argument-dependent lookup]
         with
         [

_Ty=boost::unordered::detail::bucket<std::allocator<std::pair<const
std::string,quickbook::id_generator::id>>>,
             A=std::allocator<std::pair<const
std::string,quickbook::id_generator::id>>
         ]
         while trying to match the argument list
'(boost::unordered::detail::bucket<A>)'
         with
         [
             A=std::allocator<std::pair<const
std::string,quickbook::id_generator::id>>
         ]

C:\Programming\VersionControl\boost\boost/unordered/detail/buckets.hpp(207)
: while compiling class template member function 'void
boost::unordered::detail::buckets<A,Unique>::delete_buckets(void)'
         with
         [
             A=std::allocator<std::pair<const
std::string,quickbook::id_generator::id>>,
             Unique=true
         ]

C:\Programming\VersionControl\boost\boost/unordered/detail/table.hpp(564) :
see reference to class template instantiation
'boost::unordered::detail::buckets<A,Unique>' being compiled
         with
         [
             A=std::allocator<std::pair<const
std::string,quickbook::id_generator::id>>,
             Unique=true
         ]

C:\Programming\VersionControl\boost\boost/unordered/detail/unique.hpp(392)
: see reference to class template instantiation
'boost::unordered::detail::types<K,V,H,P,A,E,Unique>' being compiled
         with
         [
             K=std::string,
             V=std::pair<const std::string,quickbook::id_generator::id>,
             H=boost::hash<std::string>,
             P=std::equal_to<std::string>,
             A=std::allocator<std::pair<const
std::string,quickbook::id_generator::id>>,

E=boost::unordered::detail::map_extractor<std::string,std::pair<const
std::string,quickbook::id_generator::id>>,
             Unique=true
         ]

C:\Programming\VersionControl\boost\boost/unordered/unordered_map.hpp(63) :
see reference to class template instantiation
'boost::unordered::detail::map<K,H,P,A>' being compiled
         with
         [
             K=std::string,
             H=boost::hash<std::string>,
             P=std::equal_to<std::string>,
             A=std::allocator<std::pair<const
std::string,quickbook::id_generator::id>>
         ]

c:\programming\versioncontrol\boost\tools\quickbook\src\id_generator.hpp(52)
: see reference to class template instantiation
'boost::unordered::unordered_map<K,T>' being compiled
         with
         [
             K=std::string,
             T=quickbook::id_generator::id
         ]

     call "C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo
@"C:\Programming\VersionControl\boost\bin.v2\tools\quickbook\src\msvc-10.0\release\link-static\threading-multi\id_generator.obj.rsp"

...failed compile-c-c++
C:\Programming\VersionControl\boost\bin.v2\tools\quickbook\src\msvc-10.0\release\link-static\threading-multi\id_generator.obj..."


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk