$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] shared_ptr<>: why no operator[] ?
From: Julien Nitard (julien.nitard_at_[hidden])
Date: 2011-07-27 05:31:16
>
> boost::shared_ptr<int> p(new int(42));
>
Correct me if I am wrong but this is perfectly valid. It allocates a single
int and assigns it the value 42. It doesn't create an array.
regards,
Julien