Skip to content

Instantly share code, notes, and snippets.

@deoxxa
Created January 9, 2011 03:55
Show Gist options
  • Save deoxxa/771408 to your computer and use it in GitHub Desktop.
Save deoxxa/771408 to your computer and use it in GitHub Desktop.
switch (typeid(A1))
{
case typeid(char):
case typeid(short int):
case typeid(int):
A1 a1 = static_cast<A1>(va_arg(vl, int));
break;
case typeid(float):
case typeid(double):
A1 a1 = static_cast<A1>(va_arg(vl, double));
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment