id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 5994,MSVC compiler misbehaviour - .lib & .exp files build for .EXE project,piotr.ns2011@…,Chris Newbold,"There is bug in VS 2010 (and older versions) which makes EXE projects to build .LIB and .EXP files when using DLL runtime and ""new (std::nothrow)"" - as in ""boost\pool"" default_user_allocator_new_delete. The patch below is a workaround for this problem. According to this page: http://bit.ly/nCKoel there are no plans to fix this error on MSVC side. {{{ // -- file: // boost\pool\pool.hpp // -- under // static char * malloc BOOST_PREVENT_MACRO_SUBSTITUTION(const size_type bytes) // -- replace // { return new (std::nothrow) char[bytes]; } // -- with: #if defined(_DLL) && defined(_MSC_VER) { try { return new char[bytes]; } catch (...) { return NULL; } } #else { return new (std::nothrow) char[bytes]; } #endif }}} ",Patches,closed,To Be Determined,pool,Boost 1.47.0,Cosmetic,wontfix,,