Remove exception specification

This commit is contained in:
Guilhem Lavaux 2018-03-26 10:19:31 +02:00
parent 45912a8970
commit 43beca7053
2 changed files with 4 additions and 12 deletions

View File

@ -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<bool justCount>
void recursiveIntersectionCells(RecursionInfoCells<N,ValType, CType>& info,
Node *node,
int level)
throw (NotEnoughCells);
int level);
CoordType computeDistance(const Cell *cell, const coords& x) const;
void recursiveNearest(Node *node,

View File

@ -83,7 +83,6 @@ namespace CosmoTool {
uint32_t KDTree<N,ValType,CType,CellSplitter>::getIntersection(const coords& x, CoordType r,
KDTree<N,ValType,CType,CellSplitter>::Cell **cells,
uint32_t numCells)
throw (NotEnoughCells)
{
RecursionInfoCells<N,ValType,CType> info;
@ -117,7 +116,6 @@ namespace CosmoTool {
Cell **cells,
CoordType *distances,
uint32_t numCells)
throw (NotEnoughCells)
{
RecursionInfoCells<N,ValType> info;
@ -180,7 +178,6 @@ namespace CosmoTool {
void KDTree<N,ValType,CType,CellSplitter>::recursiveIntersectionCells(RecursionInfoCells<N,ValType,CType>& info,
Node *node,
int level)
throw (NotEnoughCells)
{
int axis = level % N;
CoordType d2 = 0;
@ -611,7 +608,6 @@ namespace CosmoTool {
template<int N, typename ValType, typename CType, typename CellSplitter>
KDTree<N,ValType,CType,CellSplitter>::KDTree(std::istream& in, Cell *cells, NodeIntType Ncells)
throw (InvalidOnDiskKDTree)
{
KDTreeHeader h;