How to convert shared_ptr to pointer?

3 Jan
2013
3 Jan
'13
5:21 p.m.
I have shared_ptr<int> variable. I need to pass a int* pointer to a function call. How to pass shared_ptr<int> as int *? -- View this message in context: http://boost.2283326.n4.nabble.com/How-to-convert-shared-ptr-to-pointer-tp46... Sent from the Boost - Users mailing list archive at Nabble.com.

5:24 p.m.
On 3 January 2013 17:21, young
I have shared_ptr<int> variable. I need to pass a int* pointer to a function call. How to pass shared_ptr<int> as int *?
Look at the manual [1] and search for get() member and get_pointer free function. [1] http://www.boost.org/doc/libs/1_52_0/libs/smart_ptr/shared_ptr.htm Best regards, -- Mateusz Loskot, http://mateusz.loskot.net
4472
Age (days ago)
4472
Last active (days ago)
4 comments
5 participants
participants (5)
-
Chris Cleeland
-
Igor R
-
Jookia
-
Mateusz Loskot
-
young