cpp_weekly icon indicating copy to clipboard operation
cpp_weekly copied to clipboard

The official C++ Weekly Repository. Code samples and notes of future / past episodes will land here at various times. PR's will be accepted in some cases.

Results 322 cpp_weekly issues
Sort by recently updated
recently updated
newest added

**Channel** C++ weekly **Topics** You nicely explain how to get RVO when using std::optional. There is actually one extra option which is to use std::make_optional. This will still make RVO...

episode idea

**Channel** C++ Weekly **Topics** * Virtual destructor * Inheritance pitfall * Security **Length** Short. It came out today as I was talking with a college. The following code results in...

episode idea

I have some question. Here is my code, it has question I want to ask everyone. https://godbolt.org/z/3d3YzoW3h My English is a bit poor, so if people have difficulty understanding what...

**Channel**: "C++Weekly" **Topics** Finally some positive news for c++ safety story... https://www.reddit.com/r/cpp/comments/1hzj1if/some_small_progress_on_bounds_safety/ which covers this: https://gcc.gnu.org/wiki/LibstdcxxDebugMode now enabled by default in gcc15: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112808 Could also cover these additional opt-in, more...

episode idea

**Channel** Is this a "C++Weekly" or "The [Fill in the Blank] Programmer" episode request? I think it would fit an C++Weekly episode much better. **Topics** Advanced template parameter packs. **Length**...

episode idea

From: https://youtu.be/R5PHRY5Pnlg?si=eSqaT0wj4_bGwHNi&t=949 - I used a stateless allocator method and left the nlohmann JSON library unmodified. - This allows the `std::pmr::memory_resource` instance to permeate the nlohmann JSON parser, and `std::pmr::polymorphic_allocator`...

**Channel** "C++Weekly" **Topics** best practices: enabling warnings ... in practice: External dependencies, controlling warnings for each TU with build systems, what about external header only libraries? What about c-libaries? Or...

episode idea

**Channel** This is a C++Weekly episode request, or perhaps just an interesting idea to mention. **Topics** Macros in metaprogramming! Some common ones like `FWD`, `ARROW`, and `LIFT`: https://godbolt.org/z/5dbqqv8x8 - Is...

episode idea

Sorry I didn't find the ep205 corresponding "issue". In this episode and in some previous one on lambda. It is claimed that lambdas can be used to optimize some variable...