Skip to content

Instantly share code, notes, and snippets.

Created June 5, 2010 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/426965 to your computer and use it in GitHub Desktop.
Save anonymous/426965 to your computer and use it in GitHub Desktop.
template baseTypedef(T)
{ static if (is(T Super == typedef))
alias baseTypedef!(Super) baseTypedef;
else
alias T baseTypedef;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment