File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,14 @@ to share STL containers between several shared libraries.
4
4
SharedAllocator interface is similar to ` std::allocator ` interface
5
5
so ` std::allocator ` can be easily replaced by ` salloc::shared_allocator ` (or by other ` salloc:: ` allocators).
6
6
7
+ ### compiling
8
+ SharedAllocator is using features of C++11 standard, so you have to use C++11 compatible compiler.
9
+
7
10
### adding shared_allocator to your project with CMake
8
11
1 . Copy files ` include/shared_allocator/*.* ` to your include directory
9
12
(for example, ` include/third_party/shared_allocator ` or just ` include/shared_allocator ` ).
10
13
2 . Copy files ` source/*.* ` to your sources directory (for example, ` source/shared_allocator ` ).
11
- 3 . Include ` source/shared_allocator/CMakeLists.txt ` into your main CMakeLists.txt: ` add_subdirectory(source/shared_allocator) `
14
+ 3 . Include ` source/shared_allocator/CMakeLists.txt ` (from step 2) into your main CMakeLists.txt: ` add_subdirectory(source/shared_allocator) `
12
15
4 . Add path to shared_allocator header files into additional include directories: ` include_directories(include/third_party) `
13
16
to make it possible for your compiler to find includes like ` #include "shared_allocator/shared_allocator.hpp" ` .
14
17
5 . Add link to shared_allocator library into every project's CMakeLists.txt that would be using ` salloc::shared_allocator<T> `
You can’t perform that action at this time.
0 commit comments