Created
March 25, 2018 00:04
-
-
Save AustinBrunkhorst/be5031e4c101c7051f10a5c05a72bbf1 to your computer and use it in GitHub Desktop.
C++ Reflection | Function Wrapper Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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