Simplifying code and achieving exception safety using unique_ptr -- Marshall Clow
This article talks about how modern C++ unique_ptr tool can be used to achieve exception safety.
Simplifying code and achieving exception safety using unique_ptr
by Marshall Clow
From the article:
The general pattern for this is:
unique_ptr<T> holder(new T{/* params */});
// set up some stuff that uses holder.get()
holder.release();

While we wait for CppCon 2015 in September, we’re featuring videos of some of the 100+ talks from CppCon 2014. Here is today’s feature:
While we wait for CppCon 2015 in September, we’re featuring videos of some of the 100+ talks from CppCon 2014. Here is today’s feature:
On Thursday the 26th of March at Tuenti's HQs in Madrid, Spain.