A reader of my book C++ Brain Teasers recently emailed me and asked: By the way, I’m curious how one gets to a point in their C++ journey / career when they’re able to give talks at these large conventions. Do you have any insights on this? I figured I’d reply in blog form, in … Continue reading How to become a conference speaker→| C++ on a Friday
I recently had the pleasure of being the guest of the week on CppCast! I chatted with Phil and Timur about CppQuiz.org‘s recent move to C++23, my book C++ Brain Teasers, and a bit about safety, the future of C++, and more. You can listen to the episode here: https://cppcast.com/tease_your_cpp_brain/| C++ on a Friday
If you’re not familiar with https://cppquiz.org, it is, as its name suggests, a C++ quiz site. Each quiz is a full C++ program, and your task is to figure out what the output is. But the real value often lies in the explanation, which goes into detail about why the answer is what it is. … Continue reading CppQuiz.org is now on C++23→| C++ on a Friday
On September 10 there will be a book launch event for my book C++ Brain Teasers organized by Oslo C++ Users Group at NDC TechTown in Kongsberg. The event starts with food and mingling at 18:00 CEST, and the book launch starts at 18:30. Check out the event at Meetup.com for more details. Update: Here’s … Continue reading C++ Brain Teasers Book Launch September 10 (live+streaming)→| C++ on a Friday
I’m very proud to announce that my first book just got released on The Pragmatic Programmers! The book is called “C++ Brain Teasers“, and is part of their Brain Teasers series. The book consists of 25 short C++ programs, and the point is to guess what the output is, and why the language works like … Continue reading I wrote a C++ book!→| C++ on a Friday
CppQuiz.org is currently using C++ 17 for explanations and needs porting to C++ 23. I’d really appreciate your help! As a thank you, three contributors will get a copy of my upcoming book C++ Brain Teasers. How do I help? All the questions from the site have been exported to https://github.com/knatten/cppquiz23. Full instructions are in … Continue reading Help get CppQuiz to C++23 and win a book!→| C++ on a Friday
Sometimes when reading about C++, for instance about template argument deduction, the term “top-level cv-qualifiers” comes up. I just spent an unreasonable amount of time being puzzled by something because I didn’t understand that references don’t have top-level cv-qualifiers. This post will hopefully help the next person (hi, next-year Anders) not make the same mistake. … Continue reading References don’t have top-level cv-qualifiers→| C++ on a Friday
The idea I had a great idea. We have constexpr if, but no constexpr conditional operator. Time for a proposal? Since we can do stuff like this: Wouldn’t it be cool if we could also do My motivation was that I had a std::variant visitor that was identical for all types except one. So instead … Continue reading Why we probably shouldn’t have constexpr conditional operator→| C++ on a Friday
Microsoft has five different version numbers to think about when it comes to C++. Here’s an attempt to explain what they all mean. Visual Studio release year (the “marketing version num…| C++ on a Friday
You may have heard of things like fundamental types, built-in types, basic types, integral types, arithmetic types, and so on. But what do they all mean, if anything? In this post I’ll gradua…| C++ on a Friday