using std::aligned_storage (#1066)

This commit is contained in:
Alden Torres 2016-09-06 00:28:28 -04:00 committed by Arvid Norberg
parent b313de3925
commit 49ebef6eeb
1 changed files with 2 additions and 4 deletions

View File

@ -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&);
};