Skip to content

Instantly share code, notes, and snippets.

@AustinBrunkhorst
Created March 25, 2018 00:04
Show Gist options
  • Select an option

  • Save AustinBrunkhorst/be5031e4c101c7051f10a5c05a72bbf1 to your computer and use it in GitHub Desktop.

Select an option

Save AustinBrunkhorst/be5031e4c101c7051f10a5c05a72bbf1 to your computer and use it in GitHub Desktop.
C++ Reflection | Function Wrapper Example
int foo(int a, float b, double c)
{
return 0;
}
auto fooWrapper = [](int a, float b, double c)
{
return foo( a, b, c );
};
// same behavior as foo( 0, 1.0f, 2.0 );
fooWrapper( 0, 1.0f, 2.0 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment