shared_ptr not defined when including from managed code
问题 I'm trying to write a managed wrapper (C++/CLI) around an unmanaged C++ static library and am having two problems: The unmanaged library uses std::shared_ptr in its headers. <memory> is included, and the header compiles as part of an unmanaged project. When I include this header in the managed project, however, I receive this error: error C2039: 'shared_ptr' : is not a member of 'std' How do I access the Values collection of a SortedDictionary<K, V> from C++/CLI? I cannot seem to find any