# HG changeset patch # User Markus Mützel # Date 1702574285 -3600 # Thu Dec 14 18:18:05 2023 +0100 # Node ID 93065e4f41579aca5ad98e88c6ce3f4f31050697 # Parent 2c3808f6155b9f5c090da118a3cc08a517b71544 build: Enable polymorphic allocators by default (bug #65034). * configure.ac: Enable "std-pmr-polymorphic-allocator" by default. diff -r 2c3808f6155b -r 93065e4f4157 configure.ac --- a/configure.ac Wed Dec 13 19:58:48 2023 +0100 +++ b/configure.ac Thu Dec 14 18:18:05 2023 +0100 @@ -305,10 +305,10 @@ AC_PROG_CXX AC_PROG_CXXCPP -ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR=no +ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR=yes AC_ARG_ENABLE(std-pmr-polymorphic-allocator, - [AS_HELP_STRING([--enable-std-pmr-polymorphic-allocator], - [build libraries requiring std::pmr::polymorphic_allocator if possible. This allows more efficient transfer of arrays at the .mex file interface. That also means that all libraries including Octave headers (e.g., .oct files) must be able to compile with that C++17 feature.])], + [AS_HELP_STRING([--disable-std-pmr-polymorphic-allocator], + [build libraries that do not require support for std::pmr::polymorphic_allocator. This prevents more efficient transfer of arrays at the .mex file interface. With enabled std::pmr::polymorphic_allocator, sources including Octave headers (e.g., for .oct files) must conform to C++17.])], [case $enableval in yes) ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR=yes ;; no) ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR=no ;;