Remove dynamic exceptions
[anna.git] / source / core / util / ZBlock.cpp
index 2bc7d21..c569f5e 100644 (file)
@@ -20,7 +20,7 @@ using namespace anna;
  * <int que indica el tamaƱo original del buffer> + buffer comprimido.
  */
 const DataBlock& ZBlock::compress(const DataBlock& data, const Mode::_v mode)
-throw(RuntimeException) {
+noexcept(false) {
   if(&data == this)
     throw RuntimeException("ZBlock::compress | Source and target object cannot be the same", ANNA_FILE_LOCATION);
 
@@ -66,7 +66,7 @@ throw(RuntimeException) {
 }
 
 const DataBlock& ZBlock::uncompress(const DataBlock& zdata)
-throw(RuntimeException) {
+noexcept(false) {
   if(&zdata == this)
     throw RuntimeException("ZBlock::uncompress | Source and target object cannot be the same", ANNA_FILE_LOCATION);