0
why constexpr fails for tydeid
Refer code below: https://www.sololearn.com/en/compiler-playground/cWMZQf1R2563 test function works perfectly fine and no issue about it. Now if I have typeid function which is evaluated at compile time (unlike dynamic_cast). So, if typeid is compile time evaluation, why testnew function fails to compile (To observe this compilation failure, uncomment function call of last two lines in main function)?
0 Answers