Skip to content

Instantly share code, notes, and snippets.

@hatsusato
Created February 1, 2016 11:38
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 hatsusato/411485d8baab9eb63948 to your computer and use it in GitHub Desktop.
Save hatsusato/411485d8baab9eb63948 to your computer and use it in GitHub Desktop.
#include <type_traits>
// Usage: template <enabler_type<condition> = nullptr>
template <bool B>
using enabler_type = typename std::enable_if<B, std::nullptr_t>::type;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment