OpenMining  0.01
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Exit.h
Go to the documentation of this file.
1 #ifndef Exit_h
2 #define Exit_h
3 
4 #include <iostream>
5 
6 namespace utils
7 {
8  template<class T>
9  void Exit(T& msg, int32_t error_code)
10  {
11  std::cerr << msg << std::endl;
12  exit (error_code);
13  }
14 
15  template<class T>
16  void Exit(T& msg1, T& msg2, int32_t error_code)
17  {
18  std::cerr << "Error! " << msg1 << ": " << msg2 << std::endl;
19  exit (error_code);
20  }}
21 #endif
void Exit(T &msg, int32_t error_code)
Definition: Exit.h:9