Re: [Boost-bugs] [Boost C++ Libraries] #3950: boost::interprocess::mapped_region destructor deletes shm where it shouldn't.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3950: boost::interprocess::mapped_region destructor deletes shm where it shouldn't.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-23 01:30:57


#3950: boost::interprocess::mapped_region destructor deletes shm where it
shouldn't.
-------------------------------------------+--------------------------------
 Reporter: Lénaïc Huard <lhuard@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: interprocess
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
-------------------------------------------+--------------------------------

Comment(by kab@…):

 Replying to [comment:5 igaztanaga]:
> Many thanks, I wouldn't be able to fix it by myself, I thought
 downcasted classes
> would not break strict aliasing but I was wrong.

 A downward static_cast should be fine, so long as the object is in fact of
 the type being downcasted to. See C++03 5.2.9/5. If gcc strict aliasing
 optimizations are breaking that, that would be very bad.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3950#comment:7>
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:03 UTC