Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <type_traits>
- template<typename T1, typename T2>
- auto max (T1 a, T2 b) -> typename std::decay<decltype(b<a?a:b)>::type
- { return b < a ? a : b;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement