• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
17     struct scoped_action_base
18     {
startquickbook::scoped_action_base19         bool start() { return true; }
successquickbook::scoped_action_base20         template <typename Iterator> void success(Iterator, Iterator) {}
failurequickbook::scoped_action_base21         void failure() {}
cleanupquickbook::scoped_action_base22         void cleanup() {}
23 
24         template <typename ResultT, typename ScannerT>
resultquickbook::scoped_action_base25         bool result(ResultT r, ScannerT const&)
26         {
27             return r;
28         }
29     };
30 }
31 
32 #endif
33