Re: [quickbook] Build error on trunk with msvc-10.0
"Paul A. Bristow" <[email protected]>
| Newsgroups | gmane.comp.lib.boost.documentation |
|---|---|
| Message-ID | <[email protected]> |
> -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of > Edward Diener > Sent: Wednesday, August 24, 2011 2:06 PM > To: [email protected] > Subject: [Boost-docs] [quickbook] Build error on trunk with msvc-10.0 > > I can build quickbook.exe on the Boost trunk with gcc-4.6.0 MingW successfully, but when I use msvc-10.0 > I get this error: > > "compile-c-c++ > ..\..\bin.v2\tools\quickbook\src\msvc-10.0\release\link-static\thr > eading-multi\id_generator.obj > id_generator.cpp > ..\..\boost/unordered/detail/buckets.hpp(556) : error C2661: > 'std::pair<_Ty1,_Ty > 2>::pair' : no overloaded function takes 4 arguments > with > [ > _Ty1=const std::string, > _Ty2=quickbook::id_generator::id_data > ] > ..\..\boost/unordered/detail/buckets.hpp(620) : see reference to functio n template instantiation > 'void boost::unordered::detail::construct_impl<std::pai > r<_Ty1,_Ty2>,std::string&,std::string&,quickbook::id_generator::categories&,T>(s > td::pair<_Ty1,_Ty2> *,void *,Arg0,Arg1,Arg2,Arg3 &&)' being compiled > with > [ > _Ty1=const std::string, > _Ty2=quickbook::id_generator::id_data, > T=bool, > Arg0=std::string &, > Arg1=std::string &, > Arg2=quickbook::id_generator::categories &, > Arg3=bool > ] > ..\..\boost/unordered/detail/unique.hpp(297) : see reference to function > template instantiation 'void > boost::unordered::detail::node_constructor<Alloc,U > nique>::construct<std::string&,std::string&,quickbook::id_generator::cat > nique>egories& > ,T>(Arg0,Arg1,Arg2,Arg3 &&)' being compiled > with > [ > Alloc=std::allocator<std::pair<const > std::string,quickbook::id_gener > ator::id_data>>, > Unique=true, > T=bool, > Arg0=std::string &, > Arg1=std::string &, > Arg2=quickbook::id_generator::categories &, > Arg3=bool > ] > ..\..\boost/unordered/detail/unique.hpp(295) : see reference to function > template instantiation 'std::pair<_Ty1,_Ty2> boost::unordered::detail::unique_t > able<T>::emplace_impl<std::string&,std::string&,quickbook::id_generator::categor > ies&,bool>(const std::basic_string<_Elem,_Traits,_Ax> > &,Arg0,Arg1,Arg2,Arg3 &&)' > being compiled > with > [ > > _Ty1=boost::unordered::detail::bucket<std::allocator<std::pair<const > std::string,quickbook::id_generator::id_data>>> *, > _Ty2=bool, > > T=boost::unordered::detail::map<std::string,boost::hash<std::string> > ,std::equal_to<std::string>,std::allocator<std::pair<const > std::string,quickbook > ::id_generator::id_data>>>, > _Elem=char, > _Traits=std::char_traits<char>, > _Ax=std::allocator<char>, > Arg0=std::string &, > Arg1=std::string &, > Arg2=quickbook::id_generator::categories &, > Arg3=bool > ] > ..\..\boost/unordered/unordered_map.hpp(925) : see reference to function > template instantiation 'std::pair<_Ty1,_Ty2> boost::unordered::detail::unique_t > able<T>::emplace<std::string&,std::string&,quickbook::id_generator::categories&, > bool>(Arg0,Arg1,Arg2,Arg3 &&)' being compiled > with > [ > > _Ty1=boost::unordered::detail::bucket<std::allocator<std::pair<const > std::string,quickbook::id_generator::id_data>>> *, > _Ty2=bool, > > T=boost::unordered::detail::map<std::string,boost::hash<std::string> > ,std::equal_to<std::string>,std::allocator<std::pair<const > std::string,quickbook > ::id_generator::id_data>>>, > Arg0=std::string &, > Arg1=std::string &, > Arg2=quickbook::id_generator::categories &, > Arg3=bool > ] > src\id_generator.cpp(212) : see reference to function template instantia tion 'std::pair<_Ty1,_Ty2> > boost::unordered::unordered_map<K,T>::emplace<std::st > ring&,std::string&,quickbook::id_generator::categories&,bool>(Arg0,Arg1,Arg2,Arg > 3 &&)' being compiled > with > [ > > _Ty1=boost::unordered::iterator_detail::iterator<std::allocator<std: > :pair<const std::string,quickbook::id_generator::id_data>>,true>, > _Ty2=bool, > K=std::string, > T=quickbook::id_generator::id_data, > Arg0=std::string &, > Arg1=std::string &, > Arg2=quickbook::id_generator::categories &, > Arg3=bool > ]" FWIW I can confirm that I get a similar failure to compile. (But this isn't related to my problem with \tparam). Paul