foonathan / memory

STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.
https://memory.foonathan.net
zlib License
1.5k stars 194 forks source link

Compile error when set FOONATHAN_MEMORY_TEMPORARY_STACK_MODE to 1 #142

Closed lumieru closed 2 years ago

lumieru commented 2 years ago

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'
foonathan commented 2 years ago

Thank you, fixed.