Skip to content

Commit

Permalink
PABLO: avoid using deprecated standard library templates
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-iob committed May 28, 2024
1 parent 95af0e6 commit 2526cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PABLO/ParaTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2544,7 +2544,7 @@ namespace bitpit {
throw std::runtime_error ("It is not possible to disable the ghost halo!");
}

typedef std::result_of<decltype(&Octant::getGhostLayer)(Octant)>::type layer_t;
typedef std::invoke_result_t<decltype(&Octant::getGhostLayer), Octant> layer_t;
typedef std::make_unsigned<layer_t>::type ulayer_t;
ulayer_t maxNofGhostLayers = std::numeric_limits<layer_t>::max() + (ulayer_t) 1;
if (nofGhostLayers > maxNofGhostLayers) {
Expand Down

0 comments on commit 2526cca

Please sign in to comment.