LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
error.hxx
Go to the documentation of this file.
1 
6 #ifndef MISC_ERROR_HXX
7 # define MISC_ERROR_HXX
8 
9 # include <misc/error.hh>
10 
11 namespace misc
12 {
13 
14  template <class T>
15  error&
16  error::operator<<(const T& t)
17  {
18  stream_ << t;
19  return *this;
20  }
21 
22  // Member manipulators.
23  inline error&
24  error::operator<<(member_manip_type f)
25  {
26  (this->*f)();
27  return *this;
28  }
29 
30  // Const member manipulators.
31  inline error&
32  error::operator<<(const_member_manip_type f)
33  {
34  (this->*f)();
35  return *this;
36  }
37 
38 } // namespace misc
39 
40 #endif // !MISC_ERROR_HXX