6 Apr
2019
6 Apr
'19
1:44 p.m.
Larry Evans wrote:
The documents here:
https://pdimov.github.io/variant2/doc/html/variant2.html#ref_visit
suggest visit can take any number of arguments. However, the attached fails to compile when defined(ARGS5). The user docs should make clear that there is a limit to the number of arguments.
The error has nothing to do with number of arguments. The function object needs to be callable with any combination of types; the first variant, for instance, may hold a string, and therefore, the function object must be able to accept a string as its first argument.