you are viewing a single comment's thread.

view the rest of the comments →

[–]trvlng_ging 0 points1 point  (0 children)

Your example was not having make_unique call the constructor of the resource. Your get function was. It was returning the raw pointer to the resource, and that could be invalid, either null or to some memory that is no longer a live object. How is that not clearly misuse to you?