Created
January 17, 2017 13:41
-
-
Save donkaban/112559b6876fabfa1c6f4e8182ce8ef4 to your computer and use it in GitHub Desktop.
This file contains 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
template <typename T1, typename T2> void wrapper(T1& p1, T2& p2) { f(p1, p2); } | |
template <typename T1, typename T2> void wrapper(const T1& p1, T2& p2) { f(p1, p2); } | |
template <typename T1, typename T2> void wrapper(T1& p1, const T2& p2) { f(p1, p2); } | |
template <typename T1, typename T2> void wrapper(const T1& p1, const T2& p2){ f(p1, p2); } | |
1. Поему решено использовать именно такую перегрузку? | |
2. Предложите свое решение. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment