|
||||
File indexing completed on 2025-01-30 10:00:51
0001 #ifndef BOOST_STATECHART_NULL_EXCEPTION_TRANSLATOR_HPP_INCLUDED 0002 #define BOOST_STATECHART_NULL_EXCEPTION_TRANSLATOR_HPP_INCLUDED 0003 ////////////////////////////////////////////////////////////////////////////// 0004 // Copyright 2002-2006 Andreas Huber Doenni 0005 // Distributed under the Boost Software License, Version 1.0. (See accompany- 0006 // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 0007 ////////////////////////////////////////////////////////////////////////////// 0008 0009 0010 0011 #include <boost/statechart/result.hpp> 0012 0013 0014 0015 namespace boost 0016 { 0017 namespace statechart 0018 { 0019 0020 0021 0022 ////////////////////////////////////////////////////////////////////////////// 0023 class null_exception_translator 0024 { 0025 public: 0026 ////////////////////////////////////////////////////////////////////////// 0027 // The following declarations should be private. 0028 // They are only public because many compilers lack template friends. 0029 ////////////////////////////////////////////////////////////////////////// 0030 template< class Action, class ExceptionEventHandler > 0031 result operator()( Action action, ExceptionEventHandler ) 0032 { 0033 return action(); 0034 } 0035 }; 0036 0037 0038 0039 } // namespace statechart 0040 } // namespace boost 0041 0042 0043 0044 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |