|
Boost Users : |
Subject: [Boost-users] how to create smart pointer array?
From: young (yqin_99_at_[hidden])
Date: 2013-01-30 12:00:23
What is wrong with:
boost::scoped_ptr<byte> buff[10];
for(int i=0; i<10; i++)
{
int size = 2*i + 100;
buff[i] = boost::scoped_ptr<byte>(new byte[size]);
}
...
-- View this message in context: http://boost.2283326.n4.nabble.com/how-to-create-smart-pointer-array-tp4642015.html Sent from the Boost - Users mailing list archive at Nabble.com.
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