Hi > Of course it's not exception safe - this is MSVC and that doesn't stick to > the standard - new doesn't throw exceptions.
In MSVC7.0 it does. As you know there are other types of exceptions too. Worryingly the C based Win32 API can throw exceptions too. :-S > > typedef std::auto_ptr< BITMAPINFO > BITMAPINFOPTR; > > BITMAPINFOPTR pBmi( new BYTE [ sizeof (BITMAPINFO) + (sizeof (RGBQUAD) > > * 8)) ]); > > > > I wrote my own type of smart ptr thanks. Cool! Let's have a look! Regards Paul Paul Grenyer Email: [EMAIL PROTECTED] Web: http://www.paulgrenyer.co.uk Have you met Aeryn: http://www.paulgrenyer.co.uk/aeryn?
