Skip to content

Instantly share code, notes, and snippets.

@bo0ts
Created January 23, 2013 18:14
Show Gist options
  • Save bo0ts/4611183 to your computer and use it in GitHub Desktop.
Save bo0ts/4611183 to your computer and use it in GitHub Desktop.
#include <type_traits>
template <typename T>
struct Foo {
static_assert(std::is_same<T, int>::value, "Foobar");
};
template<typename> void use_type() {}
#define CGAL_USE_TYPE(T) use_type<T>()
int main()
{
typedef Foo<double> type;
CGAL_USE_TYPE(type);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment