On 27/02/2019 12:04, Tim Burgess wrote:
I'm getting several instances of the following kind of error when I build my code, which does not use boost::thread, etc., as I use the STD versions:
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\condition_variable(124): error C2872: 'xtime': ambiguous symbol
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\thr\xtimec.h(18): note: could be 'xtime'
1>c:\program files\boost\boost\thread\lock_types.hpp(31): note: or 'boost::xtime'
Make sure you don't have "using namespace boost;" inside any header files (unless within method scope), and if you have it in source files, ensure it only appears after all #includes. (Then also follow this rule for any "using namespace" statements, because they may eventually bite you similarly.)