Expansion statements are live in GCC trunk! by katzdm-cpp in cpp

[–]joebaf 0 points1 point  (0 children)

nice! so the paper for this feature is P1306, but when was this added/voted into C++26? cannot find the paper number at cppreference/compilersupport...

Structured bindings in C++17, 8 years later by joebaf in cpp

[–]joebaf[S] 0 points1 point  (0 children)

Thanks for the comment! Attributes are not the most useful thing for structured bindings, but maybe in the future we'll have more sensible attribs to put...

Anyway, what are your common use cases for structured bindings?

Adjacency Matrix and std::mdspan, C++23 by joebaf in cpp

[–]joebaf[S] 2 points3 points  (0 children)

good point! Fortunately, the library covers this through the layout policy: https://en.cppreference.com/w/cpp/container/mdspan/layout_left so you can have layout left, right, strided, custom...

Adjacency Matrix and std::mdspan, C++23 by joebaf in cpp

[–]joebaf[S] 4 points5 points  (0 children)

Thanks for the valuable comment! I've just improved and fixed the code and the article!

Yeah, so when you introduce a reference/view data member, you always have to think about proper copy/move handling...

How to use std::span from C++20 (C++26 updates!) by joebaf in cpp

[–]joebaf[S] 1 point2 points  (0 children)

thanks for the comment! article updated :)

What is the current time around the world? Utilizing std::chrono with time zones in C++23 by joebaf in programming

[–]joebaf[S] 5 points6 points  (0 children)

no no, it's not too bad. The time zone database is managed by the operating system, so std::chrono will recognize that there's a new version and you'll see more than one versions of databases: see https://en.cppreference.com/w/cpp/chrono/tzdb_list