From 43beca705341647594bc27f6700cbad8cc43f207 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Mon, 26 Mar 2018 10:19:31 +0200 Subject: [PATCH] Remove exception specification --- src/mykdtree.hpp | 12 ++++-------- src/mykdtree.tcc | 4 ---- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/mykdtree.hpp b/src/mykdtree.hpp index e84dea2..1b36eea 100644 --- a/src/mykdtree.hpp +++ b/src/mykdtree.hpp @@ -155,13 +155,11 @@ namespace CosmoTool { uint32_t getIntersection(const coords& x, CoordType r, Cell **cells, - uint32_t numCells) - throw (NotEnoughCells); + uint32_t numCells); uint32_t getIntersection(const coords& x, CoordType r, Cell **cells, CoordType *distances, - uint32_t numCells) - throw (NotEnoughCells); + uint32_t numCells); uint32_t countCells(const coords& x, CoordType r); Cell *getNearestNeighbour(const coords& x); @@ -192,8 +190,7 @@ namespace CosmoTool { #endif #ifdef __KD_TREE_SAVE_ON_DISK - KDTree(std::istream& i, Cell *cells, NodeIntType Ncells) - throw (InvalidOnDiskKDTree); + KDTree(std::istream& i, Cell *cells, NodeIntType Ncells); void saveTree(std::ostream& o) const; #endif @@ -218,8 +215,7 @@ namespace CosmoTool { template void recursiveIntersectionCells(RecursionInfoCells& info, Node *node, - int level) - throw (NotEnoughCells); + int level); CoordType computeDistance(const Cell *cell, const coords& x) const; void recursiveNearest(Node *node, diff --git a/src/mykdtree.tcc b/src/mykdtree.tcc index e93575d..d937b23 100644 --- a/src/mykdtree.tcc +++ b/src/mykdtree.tcc @@ -83,7 +83,6 @@ namespace CosmoTool { uint32_t KDTree::getIntersection(const coords& x, CoordType r, KDTree::Cell **cells, uint32_t numCells) - throw (NotEnoughCells) { RecursionInfoCells info; @@ -117,7 +116,6 @@ namespace CosmoTool { Cell **cells, CoordType *distances, uint32_t numCells) - throw (NotEnoughCells) { RecursionInfoCells info; @@ -180,7 +178,6 @@ namespace CosmoTool { void KDTree::recursiveIntersectionCells(RecursionInfoCells& info, Node *node, int level) - throw (NotEnoughCells) { int axis = level % N; CoordType d2 = 0; @@ -611,7 +608,6 @@ namespace CosmoTool { template KDTree::KDTree(std::istream& in, Cell *cells, NodeIntType Ncells) - throw (InvalidOnDiskKDTree) { KDTreeHeader h;