04-24-2015, 07:33 AM
A couple of points regarding cPath. If you are transferring ownership with the return from getPath, you should return a unique_ptr. But since it's such a small type why not make it a value type? Also since the client shouldn't mutate the path why not return a const cPath?