biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Modernize syntax of enable_if and traits to use _t helpers
[alexxy/gromacs.git]
/
src
/
gromacs
/
math
/
tests
/
arrayrefwithpadding.cpp
diff --git
a/src/gromacs/math/tests/arrayrefwithpadding.cpp
b/src/gromacs/math/tests/arrayrefwithpadding.cpp
index eea18884dcaa01aec8f01ff7c7698e0b1cc8ab7e..e3774a476fa1db18a37bda9b6c080460e8f2bd8b 100644
(file)
--- a/
src/gromacs/math/tests/arrayrefwithpadding.cpp
+++ b/
src/gromacs/math/tests/arrayrefwithpadding.cpp
@@
-183,7
+183,7
@@
TYPED_TEST(ArrayRefWithPaddingTest, ConstructFromPointersWorks)
}
template<bool c, typename T>
-using makeConstIf_t =
typename std::conditional<c, const T, T>::type
;
+using makeConstIf_t =
std::conditional_t<c, const T, T>
;
//! Helper struct for the case actually used in mdrun signalling
template <typename T>