rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.12k stars 432 forks source link

Tutorial error #264

Open jiemojiemo opened 4 years ago

jiemojiemo commented 4 years ago
struct Base {};
struct Derived : Base {};
Derived d;
Base& base = d;
type::get<Derived>()  == type::get(base)        // yields to false on my computer

OS: macos 10.14.5 rttr: rttr-0.9.6 clang : Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.6.0

SimonLeeHub commented 3 years ago

same like you.