|
Boost Users : |
Subject: Re: [Boost-users] question about boost pointer
From: Diederick C. Niehorster (dcnieho_at_[hidden])
Date: 2012-06-08 10:55:45
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 <yqin_99_at_[hidden]> wrote:
> 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.html
> Sent from the Boost - Users mailing list archive at Nabble.com.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net