[Boost-bugs] [Boost C++ Libraries] #4655: [Interprocess] The shared_memory_object::remove return false on success

Subject: [Boost-bugs] [Boost C++ Libraries] #4655: [Interprocess] The shared_memory_object::remove return false on success
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-17 14:15:26


#4655: [Interprocess] The shared_memory_object::remove return false on success
---------------------------------------------------+------------------------
 Reporter: Kistner Eric <eric.kistner@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 The shared_memory_object::remove return false on success.
 This is due to the code doing:
 return detail::delete_file(shmfile.c_str()) == 0;

 but the detail::delete_file already return a bool that is true on succes

 Simply remove the ==0 fix the problem.

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