Questions tagged [c++26]

C++26 is the target for the version of C++ after C++23. This tag should be used (along with the C++ tag) for questions about C++ features on track for C++26.

C++26 is, most probably, the name of the C++ standard that will come after C++23. It builds upon the previous Standard, improving the core language and Standard Library, and adding new features.

Find here the latest Working Draft of the Standard. See more information at the Standard C++ Foundation webpage.

Please tag questions about C++26 with , as well as with .

4 questions
32
votes
2 answers

What are the implications of constexpr floating-point math?

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 results aren't perfectly accurate. However,…
Jan Schultke
  • 17,446
  • 6
  • 47
  • 96
4
votes
0 answers

What syntax is expected in C++26 for static reflection?

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 Matúš Chochlı́k presented a comparison of the both…
Benjamin Buch
  • 4,752
  • 7
  • 28
  • 51
2
votes
1 answer

Why can (implicitly) instantiated function templates use undeclared symbols?

I have the following code: template void fun(T t) { // foo and bar are not declared yet, but this is okay, // because they can be found through ADL for a class type T foo(t); bar(t); } struct A {}; void foo(A); //…
Jan Schultke
  • 17,446
  • 6
  • 47
  • 96
0
votes
0 answers

What does the __completion_signature concept in stdexec (senders/ receivers) do?

I'm looking at the reference implementation of P2300 (the senders and receivers proposal). I'm having trouble understanding some of the code: namespace __compl_sigs { template _Tag, class _Ty = __q<__types>, class...…