We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bca9ef commit 1f1bde7Copy full SHA for 1f1bde7
CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.12)
2
set(PROJ_NAME ZmeyaTest)
3
project(${PROJ_NAME})
4
5
-set (CMAKE_CXX_STANDARD 11)
+set (CMAKE_CXX_STANDARD 17)
6
7
add_definitions(-DZMEYA_ENABLE_SERIALIZE_SUPPORT)
8
Zmeya.h
@@ -74,7 +74,7 @@
74
#else
75
// Posix
76
#include <stdlib.h>
77
-void* alloc_aligned_posix(size_t sizeInBytes, size_t alignment)
+inline void* alloc_aligned_posix(size_t sizeInBytes, size_t alignment)
78
{
79
void* ptr = nullptr;
80
if (posix_memalign(&ptr, alignment, sizeInBytes) != 0)
0 commit comments