
30 Jun
2005
30 Jun
'05
9:55 p.m.
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.