Re: [Boost-bugs] [Boost C++ Libraries] #4020: regex::match_results::format functor cannot use member variables

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4020: regex::match_results::format functor cannot use member variables
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-16 20:27:33


#4020: regex::match_results::format functor cannot use member variables
-------------------------------------------------+--------------------------
 Reporter: Keith MacDonald <keith@…> | Owner: johnmaddock
     Type: Support Requests | Status: new
Milestone: Boost 1.43.0 | Component: regex
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: regex functor |
-------------------------------------------------+--------------------------

Comment(by steven_watanabe):

 This is normal behavior for interfaces that accept function objects. Put
 the variables outside the function object and store a pointer or reference
 to them.

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