id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 2466,function_template.hpp uses exceptions even when BOOST_NO_EXCEPTIONS is defined,ANDREW CHITTENDEN ,Douglas Gregor,"g++ gives this error message: /home/andyc/work/tiger/1/include/ppc_BOS/boost/function/function_template.hpp:720: error: exception handling disabled, use -fexceptions to enable This patch fixes it: ===== boost/function/function_template.hpp 1.1 vs edited ===== --- 1.1/boost/function/function_template.hpp 2008-10-30 16:15:10 +00:00 +++ edited/boost/function/function_template.hpp 2008-11-03 14:41:30 +00:00 @@ -715,12 +715,16 @@ return *this; this->clear(); +#ifndef BOOST_NO_EXCEPTIONS try { this->assign_to_own(f); } catch (...) { vtable = 0; throw; } +#else + this->assign_to_own(f); +#endif return *this; } ",Bugs,closed,Boost 1.38.0,function,Boost 1.36.0,Problem,fixed,,