Boost logo

Boost Users :

Subject: Re: [Boost-users] Ambiguous symbols possibly caused by Boost 1.69.0
From: Gavin Lambert (boost_at_[hidden])
Date: 2019-02-28 03:33:54


On 27/02/2019 22:05, Tim Burgess wrote:
> 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;"?

"using namespace boost" is the only one that would cause that specific
error (when used before some CRT #include), but as I did say:

>> (Then also follow this rule for any "using namespace" statements, because
>> they may eventually bite you similarly.)

you should avoid it in general.

"using namespace" is a shotgun; you need to be careful both of what
you're pointing it at, as well as where you're standing when you do so.


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