Prefer std::make_unique over std::unique_ptr(new T)
This way code is thinner and it is guaranteed that no memory leaks will occur if an exception gets thrown for some reason.
Please register or sign in to comment
This way code is thinner and it is guaranteed that no memory leaks will occur if an exception gets thrown for some reason.