Skip to content

Instantly share code, notes, and snippets.

@loliGothicK
Last active March 25, 2018 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loliGothicK/9851872ff0b26e8b6b3e307a38e338b8 to your computer and use it in GitHub Desktop.
Save loliGothicK/9851872ff0b26e8b6b3e307a38e338b8 to your computer and use it in GitHub Desktop.
#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