28 #ifndef WEBSOCKETPP_COMMON_MEMORY_HPP
29 #define WEBSOCKETPP_COMMON_MEMORY_HPP
31 #include <websocketpp/common/cpp11.hpp>
36 #if defined _WEBSOCKETPP_CPP11_INTERNAL_ && !defined _WEBSOCKETPP_NO_CPP11_MEMORY_
37 #ifndef _WEBSOCKETPP_CPP11_MEMORY_
38 #define _WEBSOCKETPP_CPP11_MEMORY_
44 #if defined(_MSC_VER) && _MSC_VER >= 1600 && !defined _WEBSOCKETPP_NO_CPP11_MEMORY_
45 #ifndef _WEBSOCKETPP_CPP11_MEMORY_
46 #define _WEBSOCKETPP_CPP11_MEMORY_
52 #ifdef _WEBSOCKETPP_CPP11_MEMORY_
55 #include <boost/shared_ptr.hpp>
56 #include <boost/make_shared.hpp>
57 #include <boost/scoped_array.hpp>
58 #include <boost/enable_shared_from_this.hpp>
59 #include <boost/pointer_cast.hpp>
65 #ifdef _WEBSOCKETPP_CPP11_MEMORY_
66 using std::shared_ptr;
68 using std::enable_shared_from_this;
69 using std::static_pointer_cast;
70 using std::make_shared;
72 typedef std::unique_ptr<unsigned char[]> unique_ptr_uchar_array;
74 using boost::shared_ptr;
75 using boost::weak_ptr;
76 using boost::enable_shared_from_this;
77 using boost::static_pointer_cast;
78 using boost::make_shared;
80 typedef boost::scoped_array<unsigned char> unique_ptr_uchar_array;
86 #endif // WEBSOCKETPP_COMMON_MEMORY_HPP
Namespace for the WebSocket++ project.