//
//////////////////////////////////////////////////////////////////////////////
-#include <boost/move/detail/config_begin.hpp>
-#include <cassert>
-
//[file_descriptor_def
#include <boost/move/utility_core.hpp>
return 1;
}
- void operating_system_close_file(int fd)
- { (void)fd; assert(fd != 0); }
+ void operating_system_close_file(int)
+ {}
//->
int os_descr_;
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_); }
return 0;
}
//]
-
-#include <boost/move/detail/config_end.hpp>