← All questionsSteadyLanguages and frameworks
How do I write modern C++ that stays safe and clear?
You are not the only one. Asked 14 times since June 2026, 5 of them in the last 4 weeks.
Times asked per week
9 Sept – 1 Dec
2Week of 9 SeptTimes asked2Week of 16 SeptTimes asked01Week of 23 SeptTimes asked11Week of 30 SeptTimes asked11Week of 7 OctTimes asked12Week of 14 OctTimes asked21Week of 21 OctTimes asked1Week of 28 OctTimes asked01Week of 4 NovTimes asked12Week of 11 NovTimes asked2Week of 18 NovTimes asked02Week of 25 NovTimes asked2
Week of 9 SeptWeek of 25 Nov
Coloured columns are the last 4 weeks.
What people asked
Each line is our one-sentence summary. The link opens the original discussion.
- Why would you want to put a C++ coroutine generator into a FIFO queue, and can you show a succinct code snippet demonstrating the issue?Open thread →
- In modern C++17 and later, is it better to implement a reset method that restores default member values, or to reassign a freshly constructed instance in place, and what are the trade-offs?Open thread →
- Which C++ string class is the fastest for common string operations?Open thread →
Show 11 more
- How can I simplify using a helper class to pass multiple parameters to co_await in C++ coroutines?Open thread →
- Do developers still enjoy writing C++ given its complexity and feature creep since C++11?Open thread →
- How can out-of-bounds reads be systematically avoided in C++23 when an implicit conversion from char pointer to std::string_view ignores the buffer length, for example with a static checker or a compiler flag?Open thread →
- How can I work around the C++ limitation that generic lambdas cannot be used at compile time?Open thread →
- Is a sized random-access range always a common range in C++?Open thread →
- Is a sized random-access range always a common range in C++20 ranges?Open thread →
- What changed in the MSVC implementation of std::string since the 2022 edition of RE for Beginners, and what is the extra size_t field now placed before the string buffer?Open thread →
- How fast is C++23's std::flat_map compared with other associative containers?Open thread →
- How should a C++ sparse set handle a custom payload and object lifetime for a swap-only deletion policy where the dense storage is not shrunk?Open thread →
- Which C++ hash map should you use?Open thread →
- Why has Modern C++ accumulated so many overlapping and semantically diluted container and library operations such as erase, remove, clear, erase_if and shrink_to_fit?Open thread →
Where it is asked
- Hacker News10
- Stack Exchange4