Remove dynamic exceptions
[anna.git] / source / io / Directory.cpp
index 0a853cd..59f85da 100644 (file)
@@ -28,7 +28,7 @@ io::Directory::Directory() :
 }
 
 void io::Directory::setPattern(const char* expression)
-throw(RuntimeException) {
+noexcept(false) {
   if(a_hasPattern == true) {
     regfree(&a_regex);
     a_hasPattern = false;
@@ -57,7 +57,7 @@ throw(RuntimeException) {
 }
 
 void io::Directory:: read(const char* dirName, const Mode::_v mode)
-throw(RuntimeException) {
+noexcept(false) {
   DIR* handle;
   dirent* entry;
   string file;
@@ -91,7 +91,7 @@ throw(RuntimeException) {
 }
 
 io::Directory::const_iterator io::Directory::find(const std::string& file) const
-throw() {
+{
   return std::find(begin(), end(), file);
 }