Opened 6 years ago
Closed 6 years ago
#12286 closed Bugs (fixed)
PMR flat_map from Boost Container does not compile
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | container |
Version: | Boost 1.61.0 | Severity: | Showstopper |
Keywords: | container pmr flat_map | Cc: |
Description
Hello,
PMR flat_map from Boost Container does not compile with GCC 6.1.0.
The code:
Code highlighting:
#include <boost/container/pmr/flat_map.hpp> #include <boost/container/pmr/monotonic_buffer_resource.hpp> using namespace boost::container::pmr; int main(int argc, char *argv[]) { static const size_t s = 4096; char buffer[s]; monotonic_buffer_resource r(buffer, s); flat_map<size_t, size_t> m(&r); m.emplace(1, 2); return 0; }
Compile with:
g++ -std=c++14 -I./../../../Boost/boost_1_61_0/ -L./ -lboost_container ./main.cpp
The error is in the attached file errors.log
Attachments (1)
Change History (2)
by , 6 years ago
Attachment: | errors.log added |
---|
comment:1 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Thanks for the report. Fixed in develop:
https://github.com/boostorg/container/commit/a52684beeafb507028fab1e650f570784d26462e