diff options
author | kpu <github@kheafield.com> | 2018-06-21 17:41:43 +0300 |
---|---|---|
committer | kpu <github@kheafield.com> | 2018-06-21 17:41:43 +0300 |
commit | 1176a80bd004a63bcf36b2181fb55bb80bf56544 (patch) | |
tree | 0219850083f0b3fca3f9722570b267494118acc7 /aligned.h | |
parent | 31db0886e35e35d6df1189848d0b48b41e292c8b (diff) |
Fix headers and AVX512F
Diffstat (limited to 'aligned.h')
-rw-r--r-- | aligned.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,13 +6,14 @@ #include <cstdlib> #include <memory> -#include <type_traits> namespace intgemm { struct DeleteWithFree { template <class T> void operator() (T *t) const { - std::free(const_cast<std::remove_const_t<T>* >(t)); +// This requires newer C++ +// std::free(const_cast<std::remove_const_t<T>* >(t)); + std::free(t); } }; template <class T> using free_ptr = std::unique_ptr<T, DeleteWithFree>; |