#12749 closed Bugs (fixed)
container::pmr::polymorphic_allocator compilation error
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | container |
Version: | Boost 1.63.0 | Severity: | Problem |
Keywords: | polymorphic_allocator pmr | Cc: |
Description
Compilation of minimal code using container::pmr::polymorphic_allocator with std::map or boost::container::map or std::unordered_map results in compiler error on VC++2015U3, Apple clang and g++6.2:
\boost\container\pmr\polymorphic_allocator.hpp(109): error C2672: 'boost::container::container_detail::dispatch_uses_allocator': no matching overloaded function found.
copying this->resource() into a local variable and passing the variable to container_detail::dispatch_uses_allocator resolves the problem for std::map and std::unordered_map cases, but the error remains with boost::container::map.
Attachments (1)
Change History (3)
by , 6 years ago
Attachment: | BoostContainerPmrCompilationError_BoostMap.cpp added |
---|
comment:1 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 6 years ago
Thank you very much for an instant fix of the problem. I've tested the fix on all mentioned above compilers and it works perfectly!
Thanks for the report. Fixed in commit:
https://github.com/boostorg/container/commit/79f59776882beb77db963fb49607082faa78c171