]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/quickbook/src/scoped.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / quickbook / src / scoped.hpp
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>
25 bool result(ResultT r, ScannerT const&)
26 {
27 return r;
28 }
29 };
30 }
31
32 #endif