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 , 8 years ago
comment:3 by , 8 years ago
| Status: | new → assigned |
|---|
comment:4 by , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

Initial implementation for unary visitors was added to develop branch