You wouldn't have a next int as that declaration gets you a single int.
See http://www.boost.org/doc/libs/1_49_0/libs/smart_ptr/sp_techniques.html,
section "Using a shared_ptr to hold a pointer to an array", and the
link therein.
Best,
Dee
On Fri, Jun 8, 2012 at 9:45 PM, young
I have question about boost pointer. If I define a pointer by using:
boost::shared_ptr<int> p;
How to use p to get next int? In classic c++ pointer, I could use *(p+1). How to do it in Boost?
-- View this message in context: http://boost.2283326.n4.nabble.com/question-about-boost-pointer-tp4631069.ht... Sent from the Boost - Users mailing list archive at Nabble.com. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users