j
k
j a
j l
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
Back to the thread
Back to the list