#7092 closed Bugs (duplicate)
Fix odd workarounds for function object in for_each_pixel
Reported by: | Owned by: | Stefan Seefeld | |
---|---|---|---|
Milestone: | Boost 1.69 | Component: | gil USE GITHUB |
Version: | Boost Development Trunk | Severity: | Regression |
Keywords: | Cc: | mateusz@… |
Description
Current implementation for for_each_pixel is somehow re-assigning the functor to its own variable.
This becomes a serious problem when using a C++11 lambda-expression for the functor.
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.
See attached patch for suggested workaround.
Attachments (1)
Change History (5)
by , 10 years ago
comment:1 by , 6 years ago
Cc: | added |
---|
comment:2 by , 5 years ago
Owner: | changed from | to
---|
comment:3 by , 4 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:4 by , 4 years ago
Milestone: | To Be Determined → Boost 1.69 |
---|
FYI, the PR with fix has been accepted. Thanks!
Note:
See TracTickets
for help on using tickets.
Fix submitted via GitHub https://github.com/boostorg/gil/pull/139 pending review