- Make sure testsuite passes with "exception-handling=off". Requires using a custom mini-timer since Boost.Timer depends on Boost.Chrono, and Boost.Chrono's dll does not compile without exceptions.

This commit is contained in:
Ion Gaztañaga
2020-10-22 23:12:51 +02:00
parent ac4d3feed1
commit 75eb880a56
7 changed files with 235 additions and 23 deletions

View File

@ -33,7 +33,10 @@ class file_descriptor
public:
explicit file_descriptor(const char *filename) //Constructor
: os_descr_(operating_system_open_file(filename))
{ if(!os_descr_) throw std::runtime_error("file not found"); }
{
//=if(!os_descr_)
//=throw std::runtime_error("file not found");
}
~file_descriptor() //Destructor
{ if(os_descr_) operating_system_close_file(os_descr_); }