Boost logo

Boost :

Subject: Re: [boost] Boost.Operators and make_shared
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2013-07-13 05:55:53


On 12/07/13 10:41, Pieter wrote:
> LS,
>
>
>
> I have noticed that using Boost.Operators has a side-effect which I can't
> explain. I am using std::make_shared as a default, however, some of the
> boost libraries I use pull in boost::make_shared as well.
>
> When using some class T2 derived from one of the boost.operators classes,
> this causes MSVC2010 to not compile when invoking make_shared<T2> as the
> compiler can no longer resolve between the two overloaded versions of
> make_shared for some reason.

Welcome to ADL.
To avoid ADL issues, fully qualify all names.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk