Lancern's Treasure Chest
12:28 · Mar 12, 2022 · Sat
https://godbolt.org/z/KMx8Yvqe4
同一份代码,三个编译器,三种编译结果(
godbolt.org
Compiler Explorer - C++
template <typename T>
concept trivially_destructible = std::is_trivially_destructible_v<T>;
template <typename T>
class optional {
public:
~optional() requires trivially_destructible<T> = default;
~optional() {
if (_has_value) {
…
Home
Powered by
BroadcastChannel
&
Sepia