[Boost-bugs] [Boost C++ Libraries] #11713: boost::interprocess::basic_string instantiation broken

Subject: [Boost-bugs] [Boost C++ Libraries] #11713: boost::interprocess::basic_string instantiation broken
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-06 19:24:29


#11713: boost::interprocess::basic_string instantiation broken
-------------------------------+--------------------------
 Reporter: kaparis.dimitri@… | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.59.0 | Severity: Regression
 Keywords: |
-------------------------------+--------------------------
 It appears that instantiation of boost::container::basic_string's with
 shared memory segment allocators doesn't work in 1.59:

 {{{
 #include <boost/interprocess/managed_shared_memory.hpp>
 #include <boost/interprocess/containers/string.hpp>

     typedef boost::interprocess::managed_shared_memory::segment_manager
             SegmentManagerT;
     typedef boost::interprocess::allocator<char,SegmentManagerT>
             CharAllocatorT;

     typedef boost::interprocess::basic_string<char,
                                               std::char_traits<char>,
                                               CharAllocatorT>
             StringT;

 void test2(CharAllocatorT& alloc)
 {
     StringT s("", alloc);
 }

 }}}

 Gives error on s instantiation.
 Using g++ (Ubuntu 4.9.2-10ubuntu13) 4.9.2

 This compiles cleanly with Boost 1.57. Haven't tried 1.58

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11713>
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:19 UTC