Jonathan Boccara's blog

C++ Will No Longer Have Pointers

Published April 1, 2018 - 11 Comments

Who likes pointers? Those ancient creatures are a barrier to entry to C++, and a burden for those who braved the barrier. In the March 2018 C++ committee meeting in Jacksonville, Florida, the committee had a pretty ambitious agenda to work on. And one of the topics discussed was the deprecation, and later removal, of […]

Is std::for_each obsolete?

Published March 30, 2018 - 13 Comments
C++ for_each

I’m often asked the question: with C++11 introducing range-based for loops, is std::for_each now useless? And the short answer is: No. Let’s give a quick recap on for_each and range-based for loops, and then a heuristic for choosing between the two. for_each and range-for loops for_each std::for_each is an STL algorithm that takes a collection of elements (in the form of a begin and […]

Buy me a beer for Fluent C++

Published March 27, 2018 - 0 Comments
patreon Fluent C++

Dear reader, As I’m writing these words, the city is drawing into the night and all is becoming quieter around me. It’s the end of one of the post nights of the week. It’s been over a year I’ve been publishing two articles every week, and more recently videos (sneak peek into the future, we’re […]

What Heaps Can Do That Priority Queues Don’t

Published March 23, 2018 - 4 Comments

Heaps are implementations of priority queues. But what’s the point of having multiple STL algorithms that manipulate heaps in the form of a range, if you can directly use a priority queue structure? What heaps allow you to do that priority queues don’t? This is the question we tackle in this week’s video. The series […]

The C++ Metaclasses Proposal in Less Than 5 Minutes

Published March 9, 2018 - 5 Comments
metaclass C++

If you want a glimpse of what the future of C++ might look like, here is a brief overview of one of the most popular recent proposals: metaclasses. It’s also interesting to know about metaclasses even for the present, because this proposal puts in perspective structuring elements of the language as it is today. Transcript […]

The Issues With Singletons and How to Fix Them

Published March 6, 2018 - 9 Comments
singletons signals

Singleton is one of the 23 design patterns of book of the Gang of Four, but over time it has evolved into an anti-pattern that developers tend to avoid nowadays. Today we have a guest on Fluent C++, Mihai Sebea. Mihai is here today to share with us his experience about rooting out singletons, and […]