新版本的增强,有一条: 支持constexpr new
想尝鲜的人可以试试了。
C++
Several C++20 features have been implemented:
Concepts, including P0734R0, P0857R0, P1084R2, P1141R2, P0848R3, P1616R1, P1452R2
P1668R1, Permitting Unevaluated inline-assembly in constexpr Functions
P1161R3, Deprecate a[b,c]
P0848R3, Conditionally Trivial Special Member Functions
P1091R3, Extending structured bindings
P1143R2, Adding the constinit keyword
P1152R4, Deprecating volatile
P0388R4, Permit conversions to arrays of unknown bound
P0784R7, constexpr new
P1301R4, [[nodiscard("with reason")]]
P1814R0, class template argument deduction for alias templates
P1816R0, class template argument deduction for aggregates
P0960R3, Parenthesized initialization of aggregates
P1331R2, Allow trivial default initialization in constexpr contexts
P1327R1, Allowing dynamic_cast and polymorphic typeid in constexpr contexts
P0912R5, Coroutines (requires -fcoroutines)
Several C++ Defect Reports have been resolved, e.g.:
DR 1560, lvalue-to-rvalue conversion in ?:
DR 1813, __is_standard_layout for a class with repeated bases
DR 2094, volatile scalars are trivially copyable,
DR 2096, constraints on literal unions
DR 2413, typename in conversion-function-ids
DR 2352, Similar types and reference binding
DR 1601, Promotion of enumeration with fixed underlying type
DR 330, Qualification conversions and pointers to arrays of pointers
DR 1307, Overload resolution based on size of array initializer-list
DR 1710, Missing template keyword in class-or-decltype
--
FROM 73.63.209.*