Opened 8 years ago

Closed 8 years ago

#10837 closed Feature Requests (fixed)

Autodetect visitation return types when possible

Reported by: Antony Polukhin Owned by: Antony Polukhin
Milestone: Boost 1.58.0 Component: variant
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Fixing this will allow to use boost::apply_visitor with generic lambda funtions:

auto str = boost::apply_visitor(
    [](auto v) { 
        return boost::lexical_cast<std::string>(v); 
    }, 
    variant_instance
);

Change History (4)

comment:1 by Antony Polukhin, 8 years ago

Initial implementation for unary visitors was added to develop branch

comment:3 by Antony Polukhin, 8 years ago

Status: newassigned

comment:4 by Antony Polukhin, 8 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.