rttrorg / rttr

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

type.create() for int not works #328

Open xhawk18 opened 2 years ago

xhawk18 commented 2 years ago
auto type = rttr::type::get<int>();
bool result = (type.create().get_type() == type);

result is false ?

adoijay commented 2 years ago

yes believe yourself, it is right

xhawk18 commented 2 years ago

yes believe yourself, it is right

also believe yan & yuan can help me ...

emikita commented 2 years ago

type.create() is propably of std::shared_ptr<int> type as default constructor policy is as_std_shared_ptr, see here