annotate DEPENDENCIES/generic/include/boost/statechart/null_exception_translator.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 #ifndef BOOST_STATECHART_NULL_EXCEPTION_TRANSLATOR_HPP_INCLUDED
Chris@16 2 #define BOOST_STATECHART_NULL_EXCEPTION_TRANSLATOR_HPP_INCLUDED
Chris@16 3 //////////////////////////////////////////////////////////////////////////////
Chris@16 4 // Copyright 2002-2006 Andreas Huber Doenni
Chris@16 5 // Distributed under the Boost Software License, Version 1.0. (See accompany-
Chris@16 6 // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7 //////////////////////////////////////////////////////////////////////////////
Chris@16 8
Chris@16 9
Chris@16 10
Chris@16 11 #include <boost/statechart/result.hpp>
Chris@16 12
Chris@16 13
Chris@16 14
Chris@16 15 namespace boost
Chris@16 16 {
Chris@16 17 namespace statechart
Chris@16 18 {
Chris@16 19
Chris@16 20
Chris@16 21
Chris@16 22 //////////////////////////////////////////////////////////////////////////////
Chris@16 23 class null_exception_translator
Chris@16 24 {
Chris@16 25 public:
Chris@16 26 //////////////////////////////////////////////////////////////////////////
Chris@16 27 // The following declarations should be private.
Chris@16 28 // They are only public because many compilers lack template friends.
Chris@16 29 //////////////////////////////////////////////////////////////////////////
Chris@16 30 template< class Action, class ExceptionEventHandler >
Chris@16 31 result operator()( Action action, ExceptionEventHandler )
Chris@16 32 {
Chris@16 33 return action();
Chris@16 34 }
Chris@16 35 };
Chris@16 36
Chris@16 37
Chris@16 38
Chris@16 39 } // namespace statechart
Chris@16 40 } // namespace boost
Chris@16 41
Chris@16 42
Chris@16 43
Chris@16 44 #endif