id summary reporter owner description type status milestone component version severity resolution keywords cc 4759 shared_ptr to bool cast with Intel C++ Composer XE 2011 abrarov@… Peter Dimov "shared_ptr-to-bool cast sometimes doesn't work on Intel C++ Compiler 11.1. Suggested patch: {{{ --- boost/smart_ptr/detail/operator_bool.hpp Пн мар 2 10:45:22 2009 +++ boost/smart_ptr/detail/operator_bool.hpp Чт сен 2 23:30:11 2010 @@ -6,7 +6,7 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt -#if ( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, < 0x570) ) || defined(__CINT__) +#if ( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, < 0x570) ) || defined(__CINT__) || defined (BOOST_INTEL) operator bool () const { }}} As test [http://sourceforge.net/projects/asio-samples/ asio-samples project] may be used. Watch at svn repository for the echo_server project: /src/ma/echo/server/session_manager.cpp:151. The ""while"" cycle doesn't work right (cycle works when shared ptr ""active_session"" points to nothing) without the suggested patch. " Bugs closed To Be Determined smart_ptr Boost 1.49.0 Problem invalid shared_ptr Intel bool cast