Modify

#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@…> 15 months ago.

Download all attachments as: .zip

Change History (2)

Changed 15 months ago by Dmitry Varlamov <big.black.fox@…>

Attachment: errors.log added

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

Resolution: fixed
Status: newclosed

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.