Timm =?utf-8?q?Bäder?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


frederick-vs-ja wrote:

> @Endilll @frederick-vs-ja p3533r2 does not actually seem to change anything 
> regarding literal types, does it? That means types with virtual bases still 
> aren't literal types but we they should be usable in constant expressions...?

P3533R2 doesn't change 
[[basic.types.general]](https://eel.is/c++draft/basic.types.general). However, 
I believe it does allow types with virtual base classes to be literal types. 
Previously, it was impossible to make a constructor (or the destructor) of such 
a class `constexpr`. Now P3533R2 enables the `constexpr` addition, which allows 
the class to be a literal type.

https://github.com/llvm/llvm-project/pull/204289
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to