mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.8K
active users

#cpp26

3 posts2 participants0 posts today

On multiple occasions, I wanted to write a Tuesday Coding Tip about how to make a forwarding reference for a given type (or types convertible to that).

Turns out to be a template hell you can easily make mistake in!

I am glad there is a proposal for C++26/29 to finally give us something that should've been there since auto&& was added to the standard.

Read Herb Sutter's article for more context: herbsutter.com/2024/09/03/read

Sutter’s Mill · Reader Q&A: What’s the best way to pass an istream parameter?Here’s a super simple question: “How do I write a parameter that accepts any non-const std::istream argument? I just want an istream I can read from.” (This question isn’t l…

The C++ standard library is a fertile ground for really bad function names.

Right now I am reading Herb Sutter's report from the latest C++ standards meeting and this code sample about std::execution made me really, really unhappy.

There is no universe in which calling "finish" before "run" makes any sense.

Also, you can't "start_now" the work when in reality you're just enqueuing it and starting it later by "run".

Just... why are you doing this to my favorite language?