Skip to content

Add check for pmr default_ressource related functions #527

@sdebionne

Description

@sdebionne

Some versions of libc++ on Apple are missing the implementation of the pmr::get_default_resource(). Some Boost.GIL tests are impacted and discussed in boostorg/gil#778.

In CMake terms, the check would look something like this:

check_cxx_source_compiles( "
   #include <${pmr_include}>
   int main() {
         ${pmr_ns}::set_default_resource(nullptr);
         ${pmr_ns}::memory_resource* mr = ${pmr_ns}::get_default_resource();
         return 0;
   }
  "BOOST_HAVE_DEFAULT_RESOURCE)

A polyfill would be easy to add for the missing symbols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions