C++ User Group
Mittwoch, 30. Oktober 2024 -
14:00
Montag, 28. Oktober 2024
Dienstag, 29. Oktober 2024
Mittwoch, 30. Oktober 2024
14:00
Welcome & Introduction
-
Matthias Kretz
(
GSI Helmholtzzentrum für Schwerionenforschung GmbH(GSI)
)
Welcome & Introduction
Matthias Kretz
(
GSI Helmholtzzentrum für Schwerionenforschung GmbH(GSI)
)
14:00 - 14:05
Room: C27 3.010 - C27 Ebene 3
Setting expectations
14:05
fixed_string: why we need another string type and how to produce a never-dangling string_view
-
Matthias Kretz
(
GSI Helmholtzzentrum für Schwerionenforschung GmbH(GSI)
)
fixed_string: why we need another string type and how to produce a never-dangling string_view
Matthias Kretz
(
GSI Helmholtzzentrum für Schwerionenforschung GmbH(GSI)
)
14:05 - 15:00
Room: C27 3.010 - C27 Ebene 3
std::fixed_string is currently in review for C++26. std::string, std::string_view, and string literals are currently not valid non-type template parameters (NTTP). std::fixed_string wants to fill that hole. But is that its sole purpose? And what about the string_view returned from fixed_string, it's just a pointer to a char array. Under what circumstances does the string_view dangle?