I wish to create a class that will check two list of argument types to see if all the arguments of the first list can be casted to the second list. So far I have something like this:
template <typename OArg> 
class conv{
  public:
    template<typename IArg>
    static bool check(){
      return std::is_convertible<IArg,OArg>::value;
    }
};
template <typename OArg, typename... OArgs>
class conv{
  public:
    template<typename IArg, typename... IArgs>
    static bool check(){
      return Op<OArg>::check<IArg>() && Op<OArgs...>::check<IArgs...>();
    }
};
I want to use it like this:
bool pass = conv<char,a_class,float>::check<float,int,b_class>();
When compiling I get:
recursive.cpp:19:7: error: redeclared with 2 template parameters
 class Conv{
       ^
recursive.cpp:10:7: note: previous declaration ‘template<class OArg> class Conv’ used 1 template parameter
 class Conv{
At check time I have no instances of either IArgs or OArgs
Could you suggest any solutions?
 
     
    