diff options
Diffstat (limited to 'tools/quickbook/src/scoped.hpp')
-rw-r--r-- | tools/quickbook/src/scoped.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/quickbook/src/scoped.hpp b/tools/quickbook/src/scoped.hpp new file mode 100644 index 0000000000..4acbb42816 --- /dev/null +++ b/tools/quickbook/src/scoped.hpp @@ -0,0 +1,32 @@ +/*============================================================================= + Copyright (c) 2011 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +#if !defined(BOOST_QUICKBOOK_SCOPED_HPP) +#define BOOST_QUICKBOOK_SCOPED_HPP + +#include <cassert> + +namespace quickbook { + + struct scoped_action_base + { + bool start() { return true; } + template <typename Iterator> + void success(Iterator, Iterator) {} + void failure() {} + void cleanup() {} + + template <typename ResultT, typename ScannerT> + bool result(ResultT result, ScannerT const&) + { + return result; + } + }; +} + +#endif |