Opened 6 years ago

Closed 6 years ago

#12286 closed Bugs (fixed)

PMR flat_map from Boost Container does not compile

Reported by: Dmitry Varlamov <big.black.fox@…> 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)

errors.log (106.0 KB ) - added by Dmitry Varlamov <big.black.fox@…> 6 years ago.

Download all attachments as: .zip

Change History (2)

by Dmitry Varlamov <big.black.fox@…>, 6 years ago

Attachment: errors.log added

comment:1 by Ion Gaztañaga, 6 years ago

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