When SIRIUS is built with SIRIUS_USE_MEMORY_POOL=OFF, tests fail to build:
In file included from /usr/ports/science/sirius/work/SIRIUS-7.5.0/apps/unit_tests/test_mempool.cpp:2:
/usr/ports/science/sirius/work/SIRIUS-7.5.0/src/core/memory.hpp:364:16: error: no matching member function for call to 'allocate'
return allocate<T>(num_elements__, M_);
^~~~~~~~~~~
/usr/ports/science/sirius/work/SIRIUS-7.5.0/apps/unit_tests/test_mempool.cpp:14:26: note: in instantiation of function template specialization 'sirius::memory_pool::allocate<std::complex<double>>' requested here
auto ptr = mp.allocate<double_complex>(1024);
^
/usr/ports/science/sirius/work/SIRIUS-7.5.0/src/core/memory.hpp:355:5: note: candidate function template not viable: requires single argument 'num_elements__', but 2 arguments were provided
allocate(size_t num_elements__)
^
/usr/ports/science/sirius/work/SIRIUS-7.5.0/src/core/memory.hpp:364:16: error: no matching member function for call to 'allocate'
return allocate<T>(num_elements__, M_);
^~~~~~~~~~~
/usr/ports/science/sirius/work/SIRIUS-7.5.0/apps/unit_tests/test_mempool.cpp:49:30: note: in instantiation of function template specialization 'sirius::memory_pool::allocate<double>' requested here
double* ptr = mp.allocate<double>(sz);
^
/usr/ports/science/sirius/work/SIRIUS-7.5.0/src/core/memory.hpp:355:5: note: candidate function template not viable: requires single argument 'num_elements__', but 2 arguments were provided
allocate(size_t num_elements__)
^
/usr/ports/science/sirius/work/SIRIUS-7.5.0/src/core/memory.hpp:364:16: error: no matching member function for call to 'allocate'
return allocate<T>(num_elements__, M_);
^~~~~~~~~~~
/usr/ports/science/sirius/work/SIRIUS-7.5.0/apps/unit_tests/test_mempool.cpp:94:20: note: in instantiation of function template specialization 'sirius::memory_pool::allocate<char>' requested here
char* ptr = mp.allocate<char>(n);
^
/usr/ports/science/sirius/work/SIRIUS-7.5.0/src/core/memory.hpp:355:5: note: candidate function template not viable: requires single argument 'num_elements__', but 2 arguments were provided
allocate(size_t num_elements__)
^
3 errors generated.
When SIRIUS is built with SIRIUS_USE_MEMORY_POOL=OFF, tests fail to build:
Version: 7.5.0 clang-16 FreeBSD 14.0