What can I use instead of std::aligned_alloc in MS Visual Studio 2013?

后端 未结 2 1646
小鲜肉
小鲜肉 2021-01-13 09:37

I would like to use C++11\'s std::aligned_alloc, but unfortunately it isn\'t available with Microsoft Visual Studio 2013.

I\'m considering, intsead, im

2条回答
  •  伪装坚强ぢ
    2021-01-13 10:22

    In Windows it's _aligned_malloc and _aligned_free, which can be found in malloc.h. The std implementation (of alignof/alignas) is in VS 2015. It's not available in 2013.

提交回复
热议问题