diff options
author | Kenneth Heafield <github@kheafield.com> | 2020-08-11 01:46:31 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2020-08-11 01:46:31 +0300 |
commit | 6b36c3590fcd2968073c9f3421506a3f27a1940a (patch) | |
tree | 6f4c49f430538016ed724f1579d331802e92d5c5 | |
parent | 93ec281ae7fd8ddc2e2a302384e688d217ef9885 (diff) |
MSVC cast
-rw-r--r-- | aligned.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -15,7 +15,7 @@ template <class T> class AlignedVector { explicit AlignedVector(std::size_t size) : size_(size) { #ifdef _MSC_VER - mem_ = _aligned_malloc(size * sizeof(T), 64); + mem_ = static_cast<T*>(_aligned_malloc(size * sizeof(T), 64)); if (!mem_) throw std::bad_alloc(); #else if (posix_memalign(reinterpret_cast<void **>(&mem_), 64, size * sizeof(T))) { |