[HELP] Complieing Boost with vc2010
I've seem to have a issue complieing boost_1_45_0..
Any one have any suggestions into why this is happenning with the precomplied headers...
Thankyou for your help....
Any one have any suggestions into why this is happenning with the precomplied headers...
Code:
c:\program files\boost\boost_1_45_0\boost\thread\win32\basic_timed_mutex.hpp(149): error C2679: binary '+' : no operator found which takes a right-hand operand of type 'const bool' (or there is no acceptable conversion) 1> C:\Program Files\Boost\boost_1_45_0\boost/date_time/posix_time/date_duration_operators.hpp(31): could be 'boost::posix_time::ptime boost::posix_time::operator +(const boost::posix_time::ptime &,const boost::gregorian::months &)' [found using argument-dependent lookup] 1> C:\Program Files\Boost\boost_1_45_0\boost/date_time/date_duration_types.hpp(132): or 'boost::gregorian::date boost::date_time::months_duration<base_config>::operator +(const boost::gregorian::date &,const boost::date_time::months_duration<base_config> &)' [found using argument-dependent lookup] 1> with 1> [ 1> base_config=boost::gregorian::greg_durations_config 1> ] 1> C:\Program Files\Boost\boost_1_45_0\boost/date_time/posix_time/date_duration_operators.hpp(75): or 'boost::posix_time::ptime boost::posix_time::operator +(const boost::posix_time::ptime &,const boost::gregorian::years &)' [found using argument-dependent lookup] 1> C:\Program Files\Boost\boost_1_45_0\boost/date_time/date_duration_types.hpp(244): or 'boost::gregorian::date boost::date_time::years_duration<base_config>::operator +(const boost::gregorian::date &,const boost::date_time::years_duration<base_config> &)' [found using argument-dependent lookup] 1> with 1> [ 1> base_config=boost::gregorian::greg_durations_config 1> ] 1> C:\Program Files\Boost\boost_1_45_0\boost/date_time/time.hpp(139): or 'boost::posix_time::ptime boost::date_time::base_time<T,time_system>::operator +(const boost::gregorian::date_duration &) const' 1> with 1> [ 1> T=boost::posix_time::ptime, 1> time_system=boost::posix_time::posix_time_system 1> ] 1> C:\Program Files\Boost\boost_1_45_0\boost/date_time/time.hpp(159): or 'boost::posix_time::ptime boost::date_time::base_time<T,time_system>::operator +(const boost::posix_time::time_duration &) const' 1> with 1> [ 1> T=boost::posix_time::ptime, 1> time_system=boost::posix_time::posix_time_system 1> ] 1> while trying to match the argument list '(boost::system_time, const bool)' 1> C:\Program Files\Boost\boost_1_45_0\boost/thread/locks.hpp(427) : see reference to function template instantiation 'bool boost::detail::basic_timed_mutex::timed_lock<TimeDuration>(const Duration &)' being compiled 1> with 1> [ 1> TimeDuration=bool, 1> Duration=bool 1> ] 1> C:\Program Files\Boost\boost_1_45_0\boost/thread/locks.hpp(307) : see reference to function template instantiation 'bool boost::unique_lock<Mutex>::timed_lock<TimeDuration>(const TimeDuration &)' being compiled 1> with 1> [ 1> Mutex=boost::mutex, 1> TimeDuration=bool 1> ] 1> ..\Common\logging.cpp(7) : see reference to function template instantiation 'boost::unique_lock<Mutex>::unique_lock<bool>(Mutex &,const TimeDuration &)' being compiled 1> with 1> [ 1> Mutex=boost::mutex, 1> TimeDuration=bool 1> ]


Just a fail quote from the threadstarter. 