6 Apr
2019
6 Apr
'19
3:20 p.m.
AMDG On 4/6/19 9:01 AM, Larry Evans via Boost wrote:
<snip> I only drew that conclusion because the number of args seems the only difference between the test that compiles OK and the one that doesn't. The code was copy&pasted from:
https://github.com/pdimov/variant2/blob/develop/test/variant_visit.cpp#L105
and the function object there only accepts `int` as it's first argument. So, does that compile because any of the alternative types can be converted to `int`?
Yes.
Hmmm. Changed the all types of the lamba args to auto and it still fails to compile :( Why is that?
The error is different, though. It fails because the function body doesn't compile with every combination of types. In Christ, Steven Watanabe