[Boost-bugs] [Boost C++ Libraries] #10281: including intrusive/list.hpp breaks compilation using managed_shared_memory

Subject: [Boost-bugs] [Boost C++ Libraries] #10281: including intrusive/list.hpp breaks compilation using managed_shared_memory
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-30 21:57:30


#10281: including intrusive/list.hpp breaks compilation using managed_shared_memory
------------------------------+--------------------------
 Reporter: stone@… | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
------------------------------+--------------------------
 The following small program fails to compile:


 {{{
   #include <boost/intrusive/list.hpp> // comment out this to make error go
 away
   #include <boost/interprocess/managed_shared_memory.hpp>

   using namespace boost::interprocess;
   managed_shared_memory msm;
   void test()
     {
     msm = boost::interprocess::managed_shared_memory(open_or_create,
 "test", 100);
     }
 }}}


 /code/git/boost/boost/intrusive/pointer_traits.hpp:173:74: error:
 static_cast from type
 Ã¢Â€Â˜boost::intrusive::pointer_traits<boost::interprocess::offset_ptr<const
 void, long int, long unsigned int, 0ul> >::element_type* {aka const
 void*}’ to type
 Ã¢Â€Â˜boost::intrusive::pointer_traits<boost::interprocess::offset_ptr<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family>::block_ctrl,
 boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void>,
 true>, (boost::intrusive::link_mode_type)0u,
 boost::intrusive::default_tag, 3u>, long int, long unsigned int, 0ul>
>::element_type* {aka
 boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family>::block_ctrl,
 boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void>,
 true>, (boost::intrusive::link_mode_type)0u,
 boost::intrusive::default_tag, 3u>*}’ casts away qualifiers

 cc --version
 gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2

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