Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.