]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2011 Daniel James | |
3 | ||
4 | Use, modification and distribution is subject to the Boost Software | |
5 | License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
6 | http://www.boost.org/LICENSE_1_0.txt) | |
7 | =============================================================================*/ | |
8 | ||
9 | #if !defined(BOOST_QUICKBOOK_SCOPED_HPP) | |
10 | #define BOOST_QUICKBOOK_SCOPED_HPP | |
11 | ||
12 | #include <cassert> | |
13 | ||
14 | namespace quickbook { | |
15 | ||
16 | struct scoped_action_base | |
17 | { | |
18 | bool start() { return true; } | |
19 | template <typename Iterator> | |
20 | void success(Iterator, Iterator) {} | |
21 | void failure() {} | |
22 | void cleanup() {} | |
23 | ||
24 | template <typename ResultT, typename ScannerT> | |
b32b8144 | 25 | bool result(ResultT r, ScannerT const&) |
7c673cae | 26 | { |
b32b8144 | 27 | return r; |
7c673cae FG |
28 | } |
29 | }; | |
30 | } | |
31 | ||
32 | #endif |