Re: High memory usage when compiling array of shared_ptr in gcc 4.6.2+

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On 6 April 2012 13:09, Jens Bauer wrote:
> Hi Philipp,
> I'd say that's sloppy coding (in my opinion).
> You should really use malloc for huge buffers, not statically allocated variables.


Maybe std::vector<shared_ptr<SomeClass>> but not malloc.

[Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

Add to Google