All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
eval/concept.h
Go to the documentation of this file.
1 #ifndef EVAL_CONCEPT_H
2 #define EVAL_CONCEPT_H
3 
4 #include "osl/player.h"
5 #include <boost/concept_check.hpp>
6 
7 namespace osl
8 {
9  namespace eval
10  {
15  {
16  public:
17  int getVal() const;
18  };
19 
24  template <class T>
25  struct Concept
26  {
31  void constraints()
32  {
33  const int value = eval.value();
34  boost::ignore_unused_variable_warning(value);
35  const int infty = T::infty();
36  boost::ignore_unused_variable_warning(infty);
37  const int capture_val = T::captureValue(ptypeo);
38  boost::ignore_unused_variable_warning(capture_val);
39  }
40  T eval;
42  };
43  } // namespace move_action
44 } // namespace osl
45 
46 
47 #endif /* EVAL_CONCEPT_H */
48 // ;;; Local Variables:
49 // ;;; mode:c++
50 // ;;; c-basic-offset:2
51 // ;;; End: