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/scoped_array.hpp>
42 #include <boost/enable_shared_from_this.hpp>
43 #include <boost/pointer_cast.hpp>
49 #ifdef _WEBSOCKETPP_CPP11_MEMORY_
50 using std::shared_ptr;
52 using std::enable_shared_from_this;
53 using std::static_pointer_cast;
55 typedef std::unique_ptr<unsigned char[]> unique_ptr_uchar_array;
57 using boost::shared_ptr;
58 using boost::weak_ptr;
59 using boost::enable_shared_from_this;
60 using boost::static_pointer_cast;
62 typedef boost::scoped_array<unsigned char> unique_ptr_uchar_array;
68 #endif // WEBSOCKETPP_COMMON_MEMORY_HPP
Namespace for the WebSocket++ project.