Modify

Opened 10 months ago

Closed 10 months ago

Last modified 10 months ago

#12749 closed Bugs (fixed)

container::pmr::polymorphic_allocator compilation error

Reported by: Sergey Korytnik <sergey.korytnik@…> 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)

BoostContainerPmrCompilationError_BoostMap.cpp (2.0 KB) - added by Sergey Korytnik <sergey.korytnik@…> 10 months ago.

Download all attachments as: .zip

Change History (3)

Changed 10 months ago by Sergey Korytnik <sergey.korytnik@…>

comment:1 Changed 10 months ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

comment:2 Changed 10 months ago by Sergey Korytnik <sergey.korytnik@…>

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!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.