View Single Post
  #3   Spotlight this post!  
Unread 11-15-2016, 12:58 PM
egaudet egaudet is offline
Registered User
FRC #4917
 
Join Date: Nov 2016
Location: Ontario, Canada
Posts: 3
egaudet is on a distinguished road
Re: Should we use std::unique_ptr?

Excellent. At least we're heading in the right direction.

I didn't realize that I didn't need the cast. I added it to fix an error but obviously it was some other problem that I was having. I just tried and it works fine without the cast.

Using the get() without all the extra parentheses makes it much more usable.

Thanks for the quick response.
Reply With Quote