Skip to content

Instantly share code, notes, and snippets.

@mattkretz
Created July 21, 2015 12:48
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 mattkretz/66823c9458685c2e96da to your computer and use it in GitHub Desktop.
Save mattkretz/66823c9458685c2e96da to your computer and use it in GitHub Desktop.
#include <type_traits>
#include <utility>
template<typename T> struct X { typedef std::true_type type; };
template<typename T>
using tester = typename X<T>::type;
template<typename T>
typename std::enable_if<tester<T>::value, int>::type foo()
{
return 0;
}
int main()
{
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment