January 2018
Intermediate to advanced
374 pages
9h 53m
English
Now we have everything in place:
Here is a simple test which verifies the functionality:
auto town_tester() { auto shire = Town{100, 200, "Shire"};
auto mordor = Town{1000, 2000, "Mordor"}; // Prints "100 200 Shire" using reflection std::cout << shire; // Prints "1000 2000 Mordor" using reflection std::cout << mordor; // Compares mordor and shire using reflection auto is_same = shire == morder; assert(!is_same); }
Quite nice, isn't it? With these ...
Read now
Unlock full access