Boost logo

Boost Users :

From: pegacorn_at_[hidden]
Date: 2006-02-25 21:44:07


Thank you.

 From: Rene Rivera <grafik.list_at_[hidden]>
 Date: Sat, 25 Feb 2006 12:41:13 -0600
 Message-Id: <4400A4C9.5050109_at_[hidden]>
/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> int main()
> {
> boost::shared_ptr<const int> ip(new int(1));
> *ip = 2; // NG
> ip.reset(new int(2)); //OK
> }

There might have been a problem in another place somewhere though
I was going to have tested its method.
I'm sorry. I had to have tried before post by a simple code like
the above-mentioned.

> Is it really hard to understand the documentation such that the answer
> isn't obvious? We would really like know so the documentation improves.

I think that exemplifying in documentation is kinder.

----
pegacorn

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