[Boost-bugs] [Boost C++ Libraries] #7092: Fix odd workarounds for function object in for_each_pixel

Subject: [Boost-bugs] [Boost C++ Libraries] #7092: Fix odd workarounds for function object in for_each_pixel
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-05 21:43:52


#7092: Fix odd workarounds for function object in for_each_pixel
--------------------------------------------------+-------------------------
 Reporter: Nana Sakisaka <n.sakisaka@…> | Owner: hljin
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: GIL
  Version: Boost Development Trunk | Severity: Regression
 Keywords: |
--------------------------------------------------+-------------------------
 Current implementation for for_each_pixel is somehow re-assigning the
 functor to its own variable. [[BR]]

 This becomes a serious problem '''when using a C++11 lambda-expression'''
 for the functor. [[BR]]

 Since the copy assignment operator for lambda-expressions is declared
 ''deleted'' by the standards, this makes it unable to pass lambda-
 expression for the functor of for_each_pixel. Obviously this is a serious
 problem for writing C++11 style codes.[[BR]]
 [[BR]]
 See attached patch for suggested workaround.

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