Skip to content

Commit 1ca4711

Browse files
authored
Merge pull request #1721 from LLNL/bugfix/result_of
Use std::invoke_result_t instead of deprecated/removed std::result_of
2 parents 8e35547 + 30e71a2 commit 1ca4711

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/axom/spin/ImplicitGrid.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "axom/primal/geometry/Vector.hpp"
1717
#include "axom/spin/RectangularLattice.hpp"
1818

19+
#include <type_traits>
1920
#include <vector>
2021

2122
namespace axom
@@ -708,7 +709,7 @@ struct ImplicitGrid<NDIMS, ExecSpace, IndexType>::QueryObject
708709
template <typename FuncType>
709710
AXOM_HOST_DEVICE bool getVisitResult(FuncType&& type, int arg) const
710711
{
711-
using ReturnType = typename std::result_of<FuncType(int)>::type;
712+
using ReturnType = std::invoke_result_t<FuncType, int>;
712713
return VisitDispatch<FuncType, ReturnType>::getResult(type, arg);
713714
}
714715

0 commit comments

Comments
 (0)