Void as a function parameter
There''s another solution presented in C++ for Dummies:
void foo(int a, int b, int c);
void foo(int a, int c)
{
foo(a, 0, c);
}
void foo(int a, int b, int c);
void foo(int a, int c)
{
foo(a, 0, c);
}
You could perhaps use the Named Parameter Idiom.
[How To Ask Questions|STL Programmer''s Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
[How To Ask Questions|STL Programmer''s Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement