foonathan/memory

Compile error when set FOONATHAN_MEMORY_TEMPORARY_STACK_MODE to 1

lumieru opened this issue · 1 comments

Following is the error message:

E:\Github\memory\src\temporary_allocator.cpp(220): error C2144: syntax error: 'char' should be preceded by ';'
E:\Github\memory\src\temporary_allocator.cpp(220): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Github\memory\src\temporary_allocator.cpp(221): error C2144: syntax error: 'bool' should be preceded by ';'
E:\Github\memory\src\temporary_allocator.cpp(221): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Github\memory\src\temporary_allocator.cpp(221): error C2086: 'int `anonymous-namespace'::FOONATHAN_THREAD_LOCAL': redefinition
E:\Github\memory\src\temporary_allocator.cpp(219): note: see declaration of '`anonymous-namespace'::FOONATHAN_THREAD_LOCAL'

Thank you, fixed.