[variant] newbie Q: cannot visit variant variable: "no matching function for call to apply_visitor ..."

Hello,
I'm getting the following error when I try to compile the attached C++
source (repetitions of "boost::detail::variant::void_" omitted for clarity)::
$ g++ variant_no_matching_function_call.cc
variant_no_matching_function_call.cc: In member function ‘size_t
Waterfall::Processor::step()::_row_size::operator()(boost::variant

AMDG Riccardo Murri wrote:
I'm getting the following error when I try to compile the attached C++ source (repetitions of "boost::detail::variant::void_" omitted for clarity)::
A local class cannot be used as a template argument. In Christ, Steven Watanabe

On Fri, Jun 4, 2010 at 8:08 PM, Steven Watanabe
Riccardo Murri wrote:
I'm getting the following error when I try to compile the attached C++ source (repetitions of "boost::detail::variant::void_" omitted for clarity)::
A local class cannot be used as a template argument.
Thanks Steven! Riccardo
participants (2)
-
Riccardo Murri
-
Steven Watanabe