Subject: Re: [boost] [review][variant2] visit needs better user documentation
From: Peter Dimov (pdimov_at_[hidden])
Date: 2019-04-06 13:44:11
Larry Evans wrote:
> The documents here:
> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk