fix doc example typo
[boost.git] / boost / statechart / null_exception_translator.hpp
blobf44accfefe63e38cf655712303a869f8d764d9ff
1 #ifndef BOOST_STATECHART_NULL_EXCEPTION_TRANSLATOR_HPP_INCLUDED
2 #define BOOST_STATECHART_NULL_EXCEPTION_TRANSLATOR_HPP_INCLUDED
3 //////////////////////////////////////////////////////////////////////////////
4 // Copyright 2002-2006 Andreas Huber Doenni
5 // Distributed under the Boost Software License, Version 1.0. (See accompany-
6 // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 //////////////////////////////////////////////////////////////////////////////
11 #include <boost/statechart/result.hpp>
15 namespace boost
17 namespace statechart
22 //////////////////////////////////////////////////////////////////////////////
23 class null_exception_translator
25 public:
26 //////////////////////////////////////////////////////////////////////////
27 // The following declarations should be private.
28 // They are only public because many compilers lack template friends.
29 //////////////////////////////////////////////////////////////////////////
30 template< class Action, class ExceptionEventHandler >
31 result operator()( Action action, ExceptionEventHandler )
33 return action();
39 } // namespace statechart
40 } // namespace boost
44 #endif