|
Boost Users : |
Subject: Re: [Boost-users] variant visitor using SFINAE problem
From: Igor R (boost.lists_at_[hidden])
Date: 2013-05-25 14:55:03
> attached my code to show my problem. It seems to work (partially) so far,
> but not the vector<int> where I get a compile error. This is my first try
> with SFINAE in that way. Are the conditions correct and robust enough? How
> to compile it? Did I forgot one use case? Using this small helper would
> simplify some post processing.
What visit() overload did you intend to call for vector<int>? Note
that enable_if condition:
mpl::and_<
boost::has_range_const_iterator<VisitableT>,
boost::is_void<typename VisitorT::result_type>
>,
seems to be fulfilled for vector<int> case, doesn't it? But it's
obviously not the right overload, as int is not variant.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net