Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
Hi! I don't know how to assign my unique_ptr a new value. std::unique_ptr<int> intPtr; void changePointer(int* ptr) { // I want intPtr to point to ptr // intPtr = ptr; } What should I do? Thanks. |