Remove dynamic exceptions
[anna.git] / source / comm / functions.cpp
index 56c541e..86ecd3f 100644 (file)
@@ -25,7 +25,7 @@ using namespace std;
 using namespace anna;
 
 comm::Application& comm::functions::getApp()
-throw(RuntimeException) {
+noexcept(false) {
   if(comm::Application::st_application == NULL)
     throw RuntimeException("No Application class has been defined", ANNA_FILE_LOCATION);
 
@@ -36,7 +36,7 @@ throw(RuntimeException) {
 }
 
 string comm::functions::getHostName()
-throw(RuntimeException) {
+noexcept(false) {
   char hostName [MAXHOSTNAMELEN];
 
   if(gethostname(hostName, MAXHOSTNAMELEN) != 0)
@@ -49,7 +49,7 @@ throw(RuntimeException) {
 
 
 std::string comm::functions::resolveIP(const char* hostname)
-throw(RuntimeException) {
+noexcept(false) {
   std::string result;
   struct hostent *host;