Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6969: Compilation fails with incomplete type âboost::STATIC_ASSERTION_FAILURE<false>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-09 08:58:50
#6969: Compilation fails with incomplete type
âboost::STATIC_ASSERTION_FAILURE<false>
-----------------------------------------------------------+----------------
Reporter: Trystan Larey-Williams <trystan@â¦> | Owner: igaztanaga
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: interprocess
Version: Boost 1.48.0 | Severity: Regression
Resolution: worksforme | Keywords:
-----------------------------------------------------------+----------------
Changes (by igaztanaga):
* status: new => closed
* resolution: => worksforme
Comment:
I think the assertion gives you the hint:
//Allocator type must be std::pair<CONST Key, T>
BOOST_STATIC_ASSERT((container_detail::is_same<std::pair<const Key, T>,
typename A::value_type>::value));
You are not using CONST for allocator pair first param and this is
required also for std::map. New boost version added this check to detect
the error early. Change your code to:
typedef boost::interprocess::pair<const unsigned int, unsigned int>
MyPair;
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6969#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC