https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99006
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- The __cpp_lib_shared_ptr_arrays feature test macro can be used to detect whether make_shared<T[]> works correctly: #if __cpp_lib_shared_ptr_arrays >= 201707L https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations#__cpp_lib_shared_ptr_arrays