Re: [Boost-bugs] [Boost C++ Libraries] #2642: bug constructing from a reference to another boost::function

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2642: bug constructing from a reference to another boost::function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-02 04:53:38


#2642: bug constructing from a reference to another boost::function
------------------------------+---------------------------------------------
  Reporter: steven_watanabe | Owner: dgregor
      Type: Bugs | Status: closed
 Milestone: Boost 1.38.0 | Component: function
   Version: Boost 1.37.0 | Severity: Problem
Resolution: fixed | Keywords:
------------------------------+---------------------------------------------

Comment(by Yusaku Sugai <sugai@…>):

 I understand that in a sense f2 is not empty.[[BR]]
 I expected that[[BR]]
  f.empty() is false => It's OK to call f().[[BR]]
  f.empty() is true => It's not OK to call f().[[BR]]
 But it is not what empty()-ness means in function library, right?[[BR]]

 Is there any way to know in advance whether it is OK to call a function
 object or not?[[BR]]
 Do I have to just try calling it and be ready for bad_function_call
 exception?

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