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

21st Jun 2023, 7:38 PM
Ali_combination
Ali_combination - avatar
6 Respuestas
+ 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
21st Jun 2023, 8:28 PM
MO ELomari
MO ELomari - avatar
+ 1
https://code.sololearn.com/c7Jw4Bcb1RRA/?ref=app
22nd Jun 2023, 8:50 AM
MO ELomari
MO ELomari - avatar
+ 1
MO ELomari Great . Thanks a lot.
22nd Jun 2023, 1:58 PM
Ali_combination
Ali_combination - avatar
+ 1
you're welcome
22nd Jun 2023, 3:15 PM
MO ELomari
MO ELomari - avatar
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.
21st Jun 2023, 8:33 PM
Ali_combination
Ali_combination - avatar
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 }
22nd Jun 2023, 6:16 AM
Ali_combination
Ali_combination - avatar