Is comparing addresses of dynamically allocated objects allowed in C++20 constant expression?

前端 未结 0 908
谎友^
谎友^ 2021-01-31 23:45

C++20 allows heap allocation in constexpr functions as long as the memory does not leak. However GCC and Clang disagree on whether comparing the addresses of two dynamically all

相关标签:
回答
  • 消灭零回复
提交回复
热议问题