Possible bug in shared_array

Hello, I think I have found an bug in the shared_array implementation in version 1.34.1 for VC8.0. I have posted this mail also in the user list. Maybe one can fix this..(if it is really a bug) I think that the implementation needs this: #elif defined( _MANAGED ) static void unspecified_bool( this_type*** ) { } typedef void (*unspecified_bool_type)( this_type*** ); operator unspecified_bool_type() const // never throws { return px == 0? 0: unspecified_bool; } it is the same implementation as used in shared_ptr. If I don't have this I get during the call a buffer overrun. Best regards Hansjörg _______________________________________________________________________ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220

Hansi Hansi:
Hello,
I think I have found an bug in the shared_array implementation in version 1.34.1 for VC8.0. I have posted this mail also in the user list. Maybe one can fix this..(if it is really a bug)
I think that the implementation needs this:
#elif defined( _MANAGED )
... Thanks, I applied this change to the SVN trunk. Can you prepare a test case as explained in http://svn.boost.org/trac/boost/wiki/ReportingBugs ?
participants (2)
-
Hansi Hansi
-
Peter Dimov