|
|
|
|
|
by CyberDildonics
706 days ago
|
|
The context you're missing is in your post's GP. I didn't miss any of that, that exactly what I thought it meant. I just don't know what you mean by precisely wish to bar ownership That's the incorrect assumption that you came to. Prove it. In a single threaded program with scope based ownership, that shared_ptr is going to be freed somewhere, so why not just have it exist in that scope as a unique_ptr so the ownership scope is clear? Obviously if bar is only used for stack-based scope variables, no shared_ptr is needed. Are you saying I'm wrong then saying the exact thing I just said? |
|