c++26 Questions

3

Solved

In [conv.lval] p3.4, the result of lvalue-to-rvalue conversion is described as follows: Otherwise, the object indicated by the glvalue is read ([defns.access]), and the value contained in the obje...

2

Solved

I've been reading parts of https://eel.is/c++draft/exec and other related articles regarding this topic. I know what schedulers, receivers, and senders are. However, I don't see how these interacti...
Thessalonian asked 3/8 at 16:15

2

Solved

In C++26, reading uninitialized variables is no longer undefined, it's "erroneous" now (What is erroneous behavior? How is it different from undefined behavior?). However, the wording for...
Objection asked 25/7 at 9:39

1

Solved

Since C++26, std::breakpoint and std::breakpoint_if_debugging is provided. The std::breakpoint is an "unconditional breakpoint", it breaks program whatever debugging mode or not. From my ...
Cerebellum asked 17/4 at 9:14

1

Solved

C++26 has introduced erroneous behavior in addition to undefined, unspecified, and implementation-defined behavior (see Undefined, unspecified and implementation-defined behavior). How is this new ...

1

Solved

When I compile the following code, I get a warning (https://godbolt.org/z/Tx7v6jWf1): void foo() { int _; // warning: name-independent declarations only available with // '-std=c++2c' or '-std=g...
Meggy asked 7/1 at 12:38

1

Solved

Pack indexing was introduced in C++26 and I was hoping for this feature to have a significant impact on metaprogramming stuff, especially for indexing packs which would otherwise require workaround...
Painless asked 30/12, 2023 at 14:44

1

Solved

As far as I know, static reflection is currently on the roadmap for C++26. The reflection TS proposes a type-based syntax, but a value-based syntax has also been proposed in the meantime. In P2560 ...
Hebrides asked 7/3, 2023 at 17:21

1

C++20 has made it possible to default comparison operators, including the three-way comparison like this. <=> can have a deduced return type, but other operators can't: struct S { friend aut...

2

Solved

Since C++11, we are able to do floating point math at compile time. C++23 and C++26 added constexpr to some functions, but not to all. constexpr floating point math is weird in general, because the...
Upstream asked 4/7, 2023 at 9:13
1

© 2022 - 2024 — McMap. All rights reserved.