Hello all,
Yet another summary of our latest session of San Diego C++ Meetup. America’s finest city endorsing America’s favorite language 😉
The meetup page can be found here.
Agenda summary
- C++ quiz – Arrays and copies during range-for-loop.
- The right auto/auto* – When using auto, and the deduced type is pointer, should we use auto? or auto*. Spoiler – use auto*. But why? This items takes us through the reasoning behind it. Hint – it helps readability and correctness especially with const involved.
- Does a default virtual destructor prevent compiler-generated move operations? – Fascinating journey investigating the implication of user defined destructor and move operation, talking about Howard’s famous table. Then – what does it mean in base classes when =default is used for virtual destructor. And finally, what is the best way to understand whether a specific class type is move constructible. Hint – it’s not that easy and straightforward, but we introduced a neat trick.
- And finall In-Place Construction for std::any, std::variant and std::optional – this item was inspired by BartÅ‚omiej Filipek C++ Stories blog post.
That’s it for this session. Thank you for reading!
Kobi