Re: [Boost-bugs] [Boost C++ Libraries] #5738: Default-constructed mapped_region address is not NULL

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5738: Default-constructed mapped_region address is not NULL
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-24 13:16:26


#5738: Default-constructed mapped_region address is not NULL
-------------------------------+--------------------------------------------
  Reporter: andysem | Owner: igaztanaga
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: interprocess
   Version: Boost 1.47.0 | Severity: Regression
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by andysem):

 I didn't mean to add a branch to get_address. The idea was to process
 MAP_FAILED internally, when mmap is called, and always use NULL to
 indicate the invalid address to users. I think NULL is the commonly used
 value for pointers to indicate address validity, so there is no need to
 introduce another constant for this. In fact, I consider MAP_FAILED
 constant as a bad legacy of the mmap function interface. I'll try to
 prepare a patch to illustrate my suggestion.

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