Subject: [Boost-bugs] [Boost C++ Libraries] #13288: boost::apply_visitor compilation failure when used with inlined lambda transfering unique_ptr ownership
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-11-06 13:16:47
#13288: boost::apply_visitor compilation failure when used with inlined lambda
transfering unique_ptr ownership
-------------------------------------+----------------------
Reporter: PaweÅ Dac <pawel.dac@â¦> | Owner: ebf
Type: Bugs | Status: new
Milestone: To Be Determined | Component: variant
Version: Boost 1.65.0 | Severity: Cosmetic
Keywords: |
-------------------------------------+----------------------
Hi,
I have a lambda that captures std::unique_ptr ownership by move on it's
capture list and transfers is further.
When such lambda is inlined in boost::apply_visitor function it failes to
compile. I think it's connected with boost::apply_visitor template
deduction .
Wordaround is to create functor not and pass it to apply_visitor.
Minimal example reproducing problem with boost 1.65 is includded as
attachment and also can be found here:
http://coliru.stacked-crooked.com/a/955148fcc337290f
Compilation log is included as attachment.
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13288> 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-11-06 13:22:55 UTC