X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcomm%2Ffunctions.cpp;fp=source%2Fcomm%2Ffunctions.cpp;h=86ecd3f00a957a97294c63eb6a6a60b1a5e835ff;hp=56c541ec249e19b187074aac6c1990e9ed9654f8;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/comm/functions.cpp b/source/comm/functions.cpp index 56c541e..86ecd3f 100644 --- a/source/comm/functions.cpp +++ b/source/comm/functions.cpp @@ -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;