$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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:
>
>    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.