template class myclass
{
public:
template void mymethod(Args... args)
{
// Do interesting stuff
}
};
Can try something like following :
#include
template
struct all_same : std::true_type
{};
template
struct all_same
: std::integral_constant{} && all_same{}>
{};
template class myclass
{
public:
template
typename std::enable_if::type mymethod(Args... args)
{
static_assert(all_same{},
"Not all args as Double");
}
};