python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
What is the variadic function template overloading precedence rule?
I'm using variadic function templates in the common recursive format and I need to change the behaviour of the function whenever I'm handling a vector.
If the functions templates were not variadic, ov...
Ivo
Votes: 0
Answers: 1
Usage of decltype in return type of function template removes error due to exception specification
I saw an answer to a question here. There the author of the answer made use of the fact that
exception specifications do not participate1 in template argument deduction.
In the answer linked above i...
Jason
Votes: 0
Answers: 1
Constrained function template vs un-constrained function template with different parameter type
In the following two template functions, one tries to be more constrained:
template<typename T>
concept SmallVar = (sizeof(T) <= sizeof(int));
void print(SmallVar auto t) { // 1
std::cou...
Amir Kirsh
Votes: 0
Answers: 1
Add function template specialisation for double types only in a template class
I have an implementation of a class template with a base class.
class MyBase
{
protected:
virtual void getErrorPercent(std::ostream& fileStream) = 0;
virtual void getFormattedText(std::ost...
Diz
Votes: 0
Answers: 0