We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This specialization of boost::container::uses_allocator:
boost::container::uses_allocator
template<class T> struct uses_allocator< ::boost::json::value, json::polymorphic_allocator<T>> : std::true_type { };
fails, because Boost.Container does not use remove_cvref on the allocator. This causes uses_allocator to receive json::polymorphic_allocator<T>&
remove_cvref
uses_allocator
json::polymorphic_allocator<T>&
However if I use this workaround:
template<class T> struct uses_allocator< ::boost::json::value, json::polymorphic_allocator<T>& > // <---- note the reference : std::true_type { };
it works correctly. The problem is here (and is likely in other places). I believe remove_cvref_t<ArgAlloc> is needed:
remove_cvref_t<ArgAlloc>
container/include/boost/container/detail/dispatch_uses_allocator.hpp
Line 116 in 5a52472
The text was updated successfully, but these errors were encountered:
cdd6d9a
Thanks for the report!
Sorry, something went wrong.
No branches or pull requests
This specialization of
boost::container::uses_allocator
:fails, because Boost.Container does not use
remove_cvref
on the allocator. This causesuses_allocator
to receivejson::polymorphic_allocator<T>&
However if I use this workaround:
it works correctly. The problem is here (and is likely in other places). I believe
remove_cvref_t<ArgAlloc>
is needed:container/include/boost/container/detail/dispatch_uses_allocator.hpp
Line 116 in 5a52472
The text was updated successfully, but these errors were encountered: