[variant].[apply_visitor] Binary visitation: Build related problem.

Hi,
Compiler instantiates the second Binary visitor instead of the first one even
though the template parameters are same.
regards,
Prashant
---------------------------------------------------------------------------
struct add_tuple_visitor: public boost::static_visitor<bool> {
// Expected this to be instantiated by the compiler.
// 1.
template <typename T>
bool operator()( T & lhs, const T & rhs) const
{
lhs += rhs ;
return true;
}
// Compiler considers this as an appropriate fit ..
// 2.
template
participants (1)
-
Prashant Thakre