Created
February 15, 2018 21:01
-
-
Save mystor/0a83e3d85d1772dc76a6a5d690bf77ec to your computer and use it in GitHub Desktop.
C++ Overloading Quiz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void generic(); | |
void specific(); | |
template<typename T> | |
void f(T&&) { | |
generic(); | |
} | |
void f(const int&) { | |
specific(); | |
} | |
// Which function does this method call? | |
void caller() { | |
int x = 10; | |
f(x); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment