Sha256: 1c87c99ee962a16fc559628f1e898eae6921e324d7db0047da99badeb1d5f0ca

Contents?: true

Size: 776 Bytes

Versions: 13

Compression:

Stored size: 776 Bytes

Contents

// This is a dummy program that just needs to compile and link to tell us if
// the C++17 std::filesystem API is available. Use CMake's configure_file
// command to replace the FILESYSTEM_HEADER and FILESYSTEM_NAMESPACE tokens
// for each combination of headers and namespaces which we want to pass to the
// CMake try_compile command.

#include <@FILESYSTEM_HEADER@>

// clang-format off
int main()
{
#if defined( __cpp_exceptions )
   try {
      throw @FILESYSTEM_NAMESPACE@::filesystem_error( "instantiate one to make sure it links", std::make_error_code( std::errc::function_not_supported ) );
   }
   catch( const @FILESYSTEM_NAMESPACE@::filesystem_error& error ) {
      return -1;
   }
#endif

   return !@FILESYSTEM_NAMESPACE@::temp_directory_path().is_absolute();
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
couchbase-3.5.5 ext/cache/json/4c7c23ac69aa1d72b3a9295ac9aceac10d32d9a1/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.5.4 ext/cache/json/4c7c23ac69aa1d72b3a9295ac9aceac10d32d9a1/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.5.3 ext/cache/json/4c7c23ac69aa1d72b3a9295ac9aceac10d32d9a1/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.5.2 ext/cache/json/4c7c23ac69aa1d72b3a9295ac9aceac10d32d9a1/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.5.1 ext/cache/json/4c7c23ac69aa1d72b3a9295ac9aceac10d32d9a1/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.5.0 ext/cache/json/4c7c23ac69aa1d72b3a9295ac9aceac10d32d9a1/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.4.5 ext/couchbase/third_party/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.4.4 ext/couchbase/third_party/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.4.3 ext/couchbase/third_party/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.4.2 ext/couchbase/third_party/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.4.1 ext/couchbase/third_party/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.4.0 ext/couchbase/third_party/json/external/PEGTL/.cmake/test_filesystem.cpp.in
couchbase-3.3.0 ext/couchbase/third_party/json/external/PEGTL/.cmake/test_filesystem.cpp.in