Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
TIL: C++23 you can use named universal character escapes
#include <print>
int main() {
std::print("\N{GREEN HEART}"); // 💚
}
https://en.cppreference.com/w/cpp/language/escape.html#Named_universal_character_escapes
May I make you aware of the phantastic @compiler_explorer, that totally indispensable tool to every software developer - the brainchild of @mattgodbolt ?
I can speak only as an average C++ developer who works at a small company, and who happens to be stranded in the C++ committee.
For my own experiments, I have a personal bookmark in my browser called "C++23 playground" as a starting point for for more elaborate adventures in the C++ lands. May be, it helps you as well:
https://godbolt.org/z/Mz96j16nx
To the best of my knowledge, the provided flags will give you some highly recommended defaults for compiler diagnostics and maximum language conformance, in the three major implementations Clang/libc++, GCC/libstdc++, and MSVC/MS-STL. Maybe you'll get some inspiration for your daily grind.
Please support Matt and the entire CE team 🤘, f.e. by getting some swag that we nerds can proudly present in the public and wear as protective gear ☺️
Visit https://shop.compiler-explorer.com/promo/BLACKFRIDAY 🤩
Are you using std::ranges in your C++ code? If not, what is stopping you?
Ranges introduced a huge paradigm shift in the way we can write our C++ code. They can make the code way shorter, way better separated, and what's best - way more resilient to both logical and memory-related bugs. 🐞
If you haven't yet dabbled in ranges yourself, I've prepared a kind of cheatsheet reference article exploring many everyday use cases and how they can be improved by using the std::ranges library. 📏
You can read the article for free on my Medium:
➤ https://medium.com/@nerudaj/you-need-to-start-using-c-s-ranges-cf80c9f38602
What are your experiences with this library? Tell me in the comments 👇
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
C++ Insights - Episode 67: C++23: Why if consteval can make your code better
In this episode, you'll learn how C++23's if consteval helps you avoiding mistakes.
Can somebody explain to me, why the last static assert fails? The value type has <=> operator returning strong ordering and std::map is clearly capable of having strong-ordered <=> operator.
Godbolt link: https://godbolt.org/z/xnaaoWxaq