#include <boost/interprocess/detail/intermodule_singleton.hpp>
#include <boost/interprocess/detail/portable_intermodule_singleton.hpp>
#include <iostream>
+#include <cstdlib> //for std::abort
using namespace boost::interprocess;
sstr << "Logger<Tag>::constructed_times != Logger<Tag>::destroyed_times\n";
sstr << "(" << Logger<Tag>::constructed_times << " vs. " << Logger<Tag>::destroyed_times << ")\n";
}
- throw std::runtime_error(sstr.str().c_str());
+ std::cout << "~LogPhoenixTester(), error: " << sstr.str() << std::endl;
+ std::abort();
}
}
};
LogSingleton::get().log_it();
std::string s("LogDeadReferenceUser failed for LogSingleton ");
s += typeid(LogSingleton).name();
- throw std::runtime_error(s.c_str());
+ std::cout << "~LogDeadReferenceUser(), error: " << s << std::endl;
+ std::abort();
}
catch(interprocess_exception &){
//Correct behaviour