Modernize STL usage
[alexxy/gromacs.git] / src / gromacs / math / paddedvector.h
index 79e5c1b08b8f53785213b8c12999e6a40e98aa70..6a1d2e12b210a856a3b4e99714399a2cb8222203 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017,2018,2019,2020, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -373,13 +373,13 @@ public:
         return ArrayRefWithPadding<const T>(data(), data() + size(), data() + paddedSize());
     }
     //! Returns an rvec * pointer for containers of RVec, for use with legacy code.
-    template<typename AlsoT = T, typename = typename std::enable_if<std::is_same<AlsoT, RVec>::value>>
+    template<typename AlsoT = T, typename = typename std::enable_if<std::is_same_v<AlsoT, RVec>>>
     rvec* rvec_array()
     {
         return as_rvec_array(data());
     }
     //! Returns a const rvec * pointer for containers of RVec, for use with legacy code.
-    template<typename AlsoT = T, typename = typename std::enable_if<std::is_same<AlsoT, RVec>::value>>
+    template<typename AlsoT = T, typename = typename std::enable_if<std::is_same_v<AlsoT, RVec>>>
     const rvec* rvec_array() const
     {
         return as_rvec_array(data());