|
Boost Users : |
Subject: Re: [Boost-users] Ambiguous symbols possibly caused by Boost 1.69.0
From: tim_at_[hidden]
Date: 2019-02-27 15:57:06
Hi,
Turns out that I needed to get rid of boost::filesystem for other reasons
anyway and there were only a few instances of namespace boost - problem
solved.
Many thanks.
Best wishes.
Tim Burgess
-----Original Message-----
From: Boost-users <boost-users-bounces_at_[hidden]> On Behalf Of Tim
Burgess via Boost-users
Sent: 27 February 2019 09:06
To: boost-users_at_[hidden]
Cc: tim_at_[hidden]
Subject: Re: [Boost-users] Ambiguous symbols possibly caused by Boost 1.69.0
Hi Gavin,
Just to be clear, is it just "using namespace boost;" I need to worry about,
or do I also need to strip out entries like "using namespace
boost::filesystem;"?
Best wishes.
Tim Burgess
-----Original Message-----
From: Boost-users <boost-users-bounces_at_[hidden]> On Behalf Of Gavin
Lambert via Boost-users
Sent: 27 February 2019 00:53
To: boost-users_at_[hidden]
Cc: Gavin Lambert <boost_at_[hidden]>
Subject: Re: [Boost-users] Ambiguous symbols possibly caused by Boost 1.69.0
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(1
24):
> 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.)
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net