阅读背景:

如何测试constexpr是否被正确评估

来源:互联网 

I have used constexpr to calculate hash codes in compile times. Code compiles correctly, runs correctly. But I dont know, if hash values are compile time or run time. If I trace code in runtime, I dont do into constexpr functions. But, those are not traced even for runtime values (calculate hash for runtime generated string - same methods). I have tried to look into dissassembly, but I quite dont understand itI have used constexpr to calculate hash codes i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: