Changeset 10858 for trunk/FACT++/src/DimErrorRedirecter.cc
- Timestamp:
- 05/27/11 13:27:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimErrorRedirecter.cc
r10833 r10858 33 33 using namespace std; 34 34 35 int DimErrorRedirecter:: cnt = 0;35 int DimErrorRedirecter::fDimErrorRedireterCnt = 0; 36 36 37 37 // -------------------------------------------------------------------------- … … 44 44 DimErrorRedirecter::DimErrorRedirecter(MessageImp &imp) : fMsg(imp) 45 45 { 46 if (cnt++) 47 { 48 fMsg.Error("ERROR - More than one instance of MyHandlers."); 49 exit(-1); 50 } 46 if (fDimErrorRedireterCnt++) 47 throw logic_error("ERROR - More than one instance of MyHandlers."); 51 48 52 49 dic_disable_padding();
Note:
See TracChangeset
for help on using the changeset viewer.