Last active
March 25, 2018 06:20
-
-
Save loliGothicK/9851872ff0b26e8b6b3e307a38e338b8 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
#include <type_trits> | |
#include <utility> | |
template < class T > | |
typename std::enable_if< std::is_integral<T>::value, T >::type | |
twice(T&& t){ | |
return t + t; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment