How to make your maps, try_emplace and smart pointers play nicely with each others in C++17.

Posted on Sun 18 November 2018 in C++ • Tagged with C++17, std::map, std::unordered_map.Leave a comment

Trivia:

Lately, I have been working on the reincarnation of a class at work: a hash map. While this class had interesting internals (a sort of dense hash map) and performed really well, its interface was not up to standard both literally and metaphorically. After much of lipstick applied to …

Continue reading

Trip report - CppCon 2018

Posted on Sun 07 October 2018 in C++ • Tagged with C++, event, cppconLeave a comment

New year, new conference! This time, my employer, King, helped me to organize a first pilgrimage to CppCon for me and another colleague. You cannot fathom how enthusiastic I was to finally making it there! Although I might be a bit late on the "trip-report-race", I think that it is …

Continue reading

Meta Crush Saga: a C++17 compile-time game

Posted on Sat 19 May 2018 in C++ • Tagged with C++17, TMP, meta programming, constexprLeave a comment

Trivia:

As a quest to obtain the highly coveted title of Lead Senior C++ Over-Engineer, I decided last year to rewrite the game I work on during daytime (Candy Crush Saga) using the quintessence of modern C++ (C++17). And... thus was born Meta Crush Saga: a compile-time game. I …

Continue reading

Trip report - Meeting C++ 2017

Posted on Thu 16 November 2017 in C++ • Tagged with C++, event, meetingcppLeave a comment

Finally, after years of watching youtube videos on that topic, I made it to my first C++ international conference! Thanks to my current employer King, I went last week to Meeting C++ in Berlin, which is, as far as I know, the biggest C++ event in Europe. I really enjoyed …

Continue reading

An introduction to C++'s variadic templates: a thread-safe multi-type map

Posted on Mon 01 February 2016 in C++ • Tagged with C++11, C++14, variadic templates, meta programmingLeave a comment

Trivia:

One of our favorite motto in our C++ team at work is: you shall use dependency injections instead of singletons! It actually comes with our unit-testing strategy. If the various components of your architecture are too tightly coupled, it becomes a tremendous effort to deeply test small critical chunks …

Continue reading

An introduction to C++'s SFINAE concept: compile-time introspection of a class member

Posted on Sat 31 October 2015 in C++ • Tagged with C++11, C++14, TMP, meta programmingLeave a comment

Trivia:

As a C++ enthusiast, I usually follow the annual C++ conference cppconf or at least try to keep myself up-to-date with the major events that happen there. One way to catch up, if you can't afford a plane ticket or the ticket, is to follow the youtube channel dedicated …

Continue reading