Opened 2 years ago

Closed 2 years ago

#12286 closed Bugs (fixed)

PMR flat_map from Boost Container does not compile

Reported by: Dmitry Varlamov <…> Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: container
Version: Boost 1.61.0 Severity: Showstopper
Keywords: container pmr flat_map Cc:



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)

errors.log (106.0 KB) - added by Dmitry Varlamov <…> 2 years ago.

Download all attachments as: .zip

Change History (2)

Changed 2 years ago by Dmitry Varlamov <…>

Attachment: errors.log added

comment:1 Changed 2 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.