Boost logo

Boost Users :

Subject: Re: [Boost-users] shared_ptr question
From: Kimmo Viitanen (kviitanen_at_[hidden])
Date: 2010-05-18 10:07:36


last_rx_frame->bytes.reset( new u_char[size]) ;

Is last_rx_frame->bytes also a shared_ptr? According to boost docs, a
shared_ptr shouldn't be used to hold a dynamically allocated array;
you should use shared_array instead. Just a shot in the dark.


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