12/11/2023 0 Comments Cmake set std versionTemplate argument deduction for class templatesĮxplicit template parameter list for generic lambdas Return type deduction for normal functions Generation of function and variable definitions when needed for constant evaluation Operations for dynamic storage duration in constexpr functions Permitting static constexpr variables in constexpr functions Relaxing some restrictions on constexpr functions and function templates Non- literal variables, labels, and goto statements in constexpr functions Trivial default initialization and asm-declaration in constexpr functionsĬhanging the active member of a union in constant evaluation Try-catch blocks in consexpr functions, dynamic_cast and polymorphic typeid in constant expressions Virtual function calls in constant expressions Relaxed constexpr, non- const constexpr methods Lambda capture of *this by value as Ĭhar8_t compatibility and portability fix (allow initialization of (unsigned) char arrays from UTF-8 string literals)Ĭonditional trivial special member functions When a feature changes significantly, the macro will be updated accordingly.Īggregate classes with default member initializersĪggregate initialization in the form of direct initializationĭynamic memory allocation for over-aligned data Each macro expands to an integer literal corresponding to the year and month when the corresponding feature has been included in the working draft. The following macros are predefined in every translation unit. #elifndef (since C++23) and defined but cannot be used anywhere else. _has_cpp_attribute can be expanded in the expression of The presence of vendor-specific attributes is determined by a non-zero value. It is recommended that non-zero value is given if and only if the standard attribute causes the implementation to behave as recommended (issuing diagnostic messages, affecting class layout, etc.). Checks for the support of an attribute named by attribute-token (after macro expansion).įor each standard attribute, it is implementation-defined whether _has_cpp_attribute expands to the year and month in which the attribute was added to the working draft (see table below) or 0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |