0
How to fix my variadic function (constructor) implementation that is in a class template?
Please help me fix this. https://code.sololearn.com/cnwvvfBgWab6/?ref=app
6 ответов
+ 1
https://code.sololearn.com/c7Jw4Bcb1RRA/?ref=app
If statements with initializer -> https://en.cppreference.com/w/cpp/language/if#If_statements_with_initializer
common_type -> https://en.cppreference.com/w/cpp/types/common_type
+ 1
https://code.sololearn.com/c7Jw4Bcb1RRA/?ref=app
+ 1
MO ELomari Great . Thanks a lot.
+ 1
you're welcome
0
MO ELomari can you DM me or resend your first link again? I don't know, Sololearn sometimes doesn't work, I tap on the first link but nothing happens.
0
MO ELomari thank you. I think you saw my comment : other functions may not be variadic. But you used a variadic template for the class. Can I use non variadic templates for non variadic functions?
i.e.
template<typename T>
void A<T>::func()
{
// some code
}