[shared_ptr] supress warning for BCB6.4

Borland C++ 6.4 emits a warning (in release mode) for function add_ref_lock() from sp_counted_base_w32.hpp ("cannot expand it inline because of for inside"). I use CVS version few weeks old. Wrapping the function with #pragma helps: ----------------- #include <boost/detail/workaround.hpp> .... #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) # pragma warn -8027 // function with "for" is not expanded inline #endif bool add_ref_lock() // true on success { .... } #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) # pragma warn .8027 #endif --------------------- Could this workaround be applied? - it is a bit annoying and completely useless warning /Pavel

Pavel Vozenilek wrote:
Borland C++ 6.4 emits a warning (in release mode) for function add_ref_lock() from sp_counted_base_w32.hpp ("cannot expand it inline because of for inside").
I use CVS version few weeks old.
Wrapping the function with #pragma helps: ----------------- #include <boost/detail/workaround.hpp> .... #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) # pragma warn -8027 // function with "for" is not expanded inline #endif
This rings a bell. There is a pragma, but it comes a bit too late in shared_count.hpp. Moved.
participants (2)
-
Pavel Vozenilek
-
Peter Dimov