diff --git a/CMakeLists.txt b/CMakeLists.txt index 6018296c..4fcbbb5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ option (ENABLE_INTEL_MKL "Enable intel-mkl (x86 platform only)" ON) option (ENABLE_CXX11_ABI "Use CXX11 ABI" ON) option (ENABLE_LIBCXX "Use libc++ instead of libstdc++" OFF) # only support in clang option (ENABLE_TOOLS "Whether compile vsag tools" ON) -option (ENABLE_EXAMPLES "Whether compile examples" OFF) +option (ENABLE_EXAMPLES "Whether compile examples" ON) option (ENABLE_TESTS "Whether compile vsag tests" ON) option (DISABLE_SSE_FORCE "Force disable sse and higher instructions" OFF) option (DISABLE_AVX_FORCE "Force disable avx and higher instructions" OFF) diff --git a/examples/cpp/custom_memory_allocator.cpp b/examples/cpp/custom_memory_allocator.cpp index e46901d3..926c9174 100644 --- a/examples/cpp/custom_memory_allocator.cpp +++ b/examples/cpp/custom_memory_allocator.cpp @@ -64,7 +64,7 @@ main() { // vsag::Options::Instance().logger()->SetLevel(vsag::Logger::kDEBUG); ExampleAllocator allocator; - vsag::Resource resource(&allocator); + vsag::Resource resource(&allocator, nullptr); vsag::Engine engine(&resource); auto paramesters = R"(