Last active
September 14, 2020 14:29
-
-
Save mikeplavsky/85f1dd8ef98be5ab21c26c9526cf13c8 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 <iostream> | |
#include <typeinfo> | |
using namespace std; | |
struct Tag { | |
string name = "Test"; | |
}; | |
void check(Tag && t) { | |
cout << t.name | |
<< " " | |
<< typeid(t).name() | |
<< std::endl; | |
} | |
int main() | |
{ | |
Tag t; | |
check(t); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://coliru.stacked-crooked.com/a/31c66c3f8302702f