I am trying to compile Glaze in Conan using Clang 16 (MacOS). However it seems to collide with C++20. Has anyone had a similar issue? It seems not to be able to handle functions in std::unordered_map
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/unordered_map:577:17: error: type 'const std::hash<std::filesystem::path>' does not provide a call operator
{return static_cast<const _Hash&>(*this)(__x);}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__hash_table:1997:21: note: in instantiation of member function 'std::__unordered_map_hasher<std::filesystem::path, std::__hash_value_type<std::filesystem::path, std::string>, std::hash<std::filesystem::path>, std::equal_to<std::filesystem::path>>::operator()' requested here
size_t __hash = hash_function()(__k);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/unordered_map:1804:21: note: in instantiation of function template specialization 'std::__hash_table<std::__hash_value_type<std::filesystem::path, std::string>, std::__unordered_map_hasher<std::filesystem::path, std::__hash_value_type<std::filesystem::path, std::string>, std::hash<std::filesystem::path>, std::equal_to<std::filesystem::path>>, std::__unordered_map_equal<std::filesystem::path, std::__hash_value_type<std::filesystem::path, std::string>, std::equal_to<std::filesystem::path>, std::hash<std::filesystem::path>>, std::allocator<std::__hash_value_type<std::filesystem::path, std::string>>>::__emplace_unique_key_args<std::filesystem::path, const std::piecewise_construct_t &, std::tuple<const std::filesystem::path &>, std::tuple<>>' requested here
return __table_.__emplace_unique_key_args(__k,
^
/Users/oj/.conan2/p/glazee181831dc5aa5/p/include/glaze/file/read_directory.hpp:18:47: note: in instantiation of member function 'std::unordered_map<std::filesystem::path, std::string>::operator[]' requested here
if (auto ec = file_to_buffer(files[entry.path()], entry.path().string()); bool(ec)) {
Hi,
I am trying to compile Glaze in Conan using Clang 16 (MacOS). However it seems to collide with C++20. Has anyone had a similar issue? It seems not to be able to handle functions in std::unordered_map