Re: [Boost-bugs] [Boost C++ Libraries] #1846: boost::addressof() doesn't work with function references

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1846: boost::addressof() doesn't work with function references
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-21 18:54:14


#1846: boost::addressof() doesn't work with function references
---------------------------+------------------------------------------------
  Reporter: eric_niebler | Owner: pdimov
      Type: Bugs | Status: assigned
 Milestone: Boost 1.36.0 | Component: None
   Version: Boost 1.35.0 | Severity: Problem
Resolution: | Keywords:
---------------------------+------------------------------------------------
Comment (by eric_niebler):

 Yours is the last name in the comment block at the top of the file. Hence
 the honor. :-)

 Seems odd to restrict reference_wrapper and addressof to object types when
 the semantics for functions is perfectly reasonable and obvious. It
 certainly hurts generic code to have to test for function references
 before any call to boost::ref(). I actually had to work around this
 problem in my code.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1846#comment:2>
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:49:57 UTC