Subject: Re: [boost] [shared_ptr] Design question about make_shared
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2011-06-15 18:25:04
> Thank you for all those answers. I was wondering if ADL had something to
> do in this decision (I could not see how, at least not in a positive
> way), but it looks like this was not a criterion.
make_shared<T>() requires an explicit template argument, and explicit template arguments inhibit ADL. This is explained in C++ Templates: The Complete Guide, if I recall correctly (it is a fundamental limitation).