using std::aligned_storage (#1066)
This commit is contained in:
parent
b313de3925
commit
49ebef6eeb
|
@ -35,9 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
#include "libtorrent/config.hpp"
|
||||
|
||||
#include "libtorrent/aux_/disable_warnings_push.hpp"
|
||||
#include <boost/aligned_storage.hpp>
|
||||
#include "libtorrent/aux_/disable_warnings_pop.hpp"
|
||||
#include <type_traits>
|
||||
|
||||
namespace libtorrent { namespace aux
|
||||
{
|
||||
|
@ -58,7 +56,7 @@ namespace libtorrent { namespace aux
|
|||
#else
|
||||
handler_storage() {}
|
||||
#endif
|
||||
boost::aligned_storage<Size> bytes;
|
||||
typename std::aligned_storage<Size>::type bytes;
|
||||
private:
|
||||
handler_storage(handler_storage const&);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue