Unable to use explicit instantiation on shared_ptr since upgrading to Visual Studio 2010.I believe the problem exists in the routine below because _Mybase (which is _Ptr_base) does not have a swap method. It, instead, has a _Swap method. void swap(_Myt&& _Right) { // exchange contents with movable _Right _Mybase::swap(_STD move(_Right)); }I removed the explicit instantiation and it resolved my problem. Note that the problem can also manifest via the following (granted it would be a strange thing to do): std::tr1::shared_ptr<int> a; a.swap(std::tr1::shared_ptr<int>(new int(1)));
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results