c++ - Where is the difference between between memory header in VS2010 and VS2012 regarding smart pointers? -
there seems different in declaration of smart pointers (shared_ptr, unique_ptr , weakptr) between vs2010 , vs2012 header file versions.
as far understand it, e.g. shared_ptr (through c++11) part of std namespace. also still part of tr1 namespace compability issues? if so, how achieved?
thank you
in header <memory>
defined tr1
namespace this:
namespace tr1 { // tr1 additions using _std allocate_shared; using _std bad_weak_ptr; using _std const_pointer_cast; using _std dynamic_pointer_cast; using _std enable_shared_from_this; using _std get_deleter; using _std make_shared; using _std shared_ptr; using _std static_pointer_cast; using _std swap; using _std weak_ptr; } // namespace tr1
_std
defined in yvals.h as
#if defined(__cplusplus) #define _std_begin namespace std { #define _std_end } #define _std ::std::
Comments
Post a Comment