Created
January 11, 2016 13:40
-
-
Save telishev/a320c802bb5991bf384a to your computer and use it in GitHub Desktop.
This file contains 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
#include "Header.h" | |
const type_info &g () { return C ().func.target_type (); } |
This file contains 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
#include <functional> | |
#include <typeinfo> | |
struct C { std::function<void ()> func = [] {}; C () { } }; | |
const type_info &g (); | |
This file contains 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
#include "Header.h" | |
#include <stdio.h> | |
int main () | |
{ | |
printf ("%s\n%s\n", C ().func.target_type ().name (), g ().name ()); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment