id summary reporter owner description type status milestone component version severity resolution keywords cc 13288 boost::apply_visitor compilation failure when used with inlined lambda transfering unique_ptr ownership Paweł Dac Antony Polukhin "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." Bugs closed Boost 1.67.0 variant Boost 1.65.0 Problem fixed