
15 Jun
2011
15 Jun
'11
10:25 p.m.
[Loïc Joly]
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). STL