28 #ifndef WEBSOCKETPP_COMMON_MEMORY_HPP
29 #define WEBSOCKETPP_COMMON_MEMORY_HPP
31 #if defined _WEBSOCKETPP_CPP11_STL_ && !defined _WEBSOCKETPP_NO_CPP11_MEMORY_
32 #ifndef _WEBSOCKETPP_CPP11_MEMORY_
33 #define _WEBSOCKETPP_CPP11_MEMORY_
37 #ifdef _WEBSOCKETPP_CPP11_MEMORY_
40 #include <boost/shared_ptr.hpp>
41 #include <boost/make_shared.hpp>
42 #include <boost/scoped_array.hpp>
43 #include <boost/enable_shared_from_this.hpp>
44 #include <boost/pointer_cast.hpp>
50 #ifdef _WEBSOCKETPP_CPP11_MEMORY_
51 using std::shared_ptr;
53 using std::enable_shared_from_this;
54 using std::static_pointer_cast;
55 using std::make_shared;
57 typedef std::unique_ptr<unsigned char[]> unique_ptr_uchar_array;
59 using boost::shared_ptr;
60 using boost::weak_ptr;
61 using boost::enable_shared_from_this;
62 using boost::static_pointer_cast;
63 using boost::make_shared;
65 typedef boost::scoped_array<unsigned char> unique_ptr_uchar_array;
71 #endif // WEBSOCKETPP_COMMON_MEMORY_HPP
Namespace for the WebSocket++ project.