Boost logo

Boost Users :

Subject: Re: [Boost-users] circular_buffer, debug and invalid iterator checking
From: Jan Gaspar (jano_gaspar_at_[hidden])
Date: 2010-11-09 16:45:41


Hi Antony, unfortunatelly yes. The other code has to be compiled with BOOST_CB_DISABLE_DEBUG defined as well if it is using a circular_buffer which holds the same type. Jan ________________________________ From: Anthony Foglia <AFoglia_at_[hidden]> To: boost-users_at_[hidden] Sent: Mon, 8 November, 2010 15:34:28 Subject: Re: [Boost-users] circular_buffer, debug and invalid iterator checking Jan Gaspar wrote: > If you a problem only with iterator invalidation (which works in > debug mode only) you can disable it completely. The documentation > says: The debug support is enabled only in the debug mode (when the > NDEBUG is not defined). It can also be explicitly disabled (only for > circular_buffer) by defining BOOST_CB_DISABLE_DEBUG macro. How would that work is my code is linked with other code that doesn't turn off the BOOST_CB_DISABLE_DEBUG macro? I would imagine there would only be a problem if some other code is using a circular buffer to hold the same type I am (which is probably the case, but puts a requirement on other people's code). Is that it? -- Anthony Foglia Princeton Consultants (609) 987-8787 x233 _______________________________________________ Boost-users mailing list Boost-users_at_[hidden] http://lists.boost.org/mailman/listinfo.cgi/boost-users



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