diff --git a/boost/test/impl/execution_monitor.ipp b/boost/test/impl/execution_monitor.ipp index 4f15b49..a481a88 100644 --- a/boost/test/impl/execution_monitor.ipp +++ b/boost/test/impl/execution_monitor.ipp @@ -276,6 +276,16 @@ struct fpe_except_guard { unsigned m_previosly_enabled; }; +struct forward { + explicit forward( boost::function const& F ) : m_F( F ) {} + + int operator()() { m_F(); return 0; } + + boost::function const& m_F; +}; + + + } // namespace detail #if defined(BOOST_SIGACTION_BASED_SIGNAL_HANDLING) @@ -1276,15 +1286,7 @@ execution_monitor::execute( boost::function const& F ) void execution_monitor::vexecute( boost::function const& F ) { - struct forward { - explicit forward( boost::function const& F ) : m_F( F ) {} - - int operator()() { m_F(); return 0; } - - boost::function const& m_F; - }; - - execute( forward( F ) ); + execute( detail::forward( F ) ); } // ************************************************************************** //