Skip to content

Instantly share code, notes, and snippets.

@AntonBikineev
Created August 19, 2015 18:09
Show Gist options
  • Save AntonBikineev/9cc93cb84dfe1d96129c to your computer and use it in GitHub Desktop.
Save AntonBikineev/9cc93cb84dfe1d96129c to your computer and use it in GitHub Desktop.
template <class T, class = void>
struct has_something: std::false_type {};
template <class T>
struct has_something<T, void_t<decltype(std::declval<T>().something)> > : std::true_type
{
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment