by Bjarne Stroustrup
Getting initialization right is an important part of programming. Over the years, this ... all » has led to a mess of language facilities and techniques. This talk describes how C++0x (most likely) will address two issues: how to get a uniform syntax and semantics for all initialization and how to allow initialization by general lists. Obviously, people will want the solution to be really simple and completely compatible. As ever, the resolution is to be almost completely compatible and almost simple. This talk will describe sequence constructors, homogeneous and heterogeneous initializer lists, and (as far as time allows) fit generalized constant expressions, prevention of narrowing conversions, and variadic templates into this picture.
Source: Google Tech Talks
F.4 — Constexpr functions (part 4)
-
Constexpr/consteval functions can use non-const local variables Within a
constexpr or consteval function, we can use local variables that are not
constexpr...
1 week ago
No comments:
Post a Comment