Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2005-06-30 16:03:43


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk