Skip to content
Snippets Groups Projects

Use constexpr instead of DUNE_CONSTEXPR

Merged Marco Agnese requested to merge feature/use_constexpr_instead_of_DUNE_CONSTEXPR into master
6 files
+ 17
21
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -6,7 +6,6 @@
#include <type_traits>
#include <utility>
#include <dune/common/std/constexpr.hh>
#include <dune/common/std/noexcept.hh>
namespace Dune
@@ -44,7 +43,7 @@ namespace Dune
typedef T value_type;
/** \brief return number of elements in sequence */
static DUNE_CONSTEXPR std::size_t size () { return sizeof...( Ints ); }
static constexpr std::size_t size () { return sizeof...( Ints ); }
};
@@ -126,7 +125,7 @@ namespace Dune
* \tparam N requested size of index sequence
*/
template< std::size_t N >
static DUNE_CONSTEXPR inline typename make_index_sequence_impl< N >::type make_index_sequence ()
static constexpr inline typename make_index_sequence_impl< N >::type make_index_sequence ()
{
return typename make_index_sequence_impl< N >::type();
}
@@ -145,7 +144,7 @@ namespace Dune
* \tparam N requested size of integer sequence
*/
template< class T, T N >
static DUNE_CONSTEXPR inline typename make_index_sequence_impl< N >::type::template rebind< T >::type
static constexpr inline typename make_index_sequence_impl< N >::type::template rebind< T >::type
make_integer_sequence ()
{
return typename make_index_sequence_impl< N >::type::template rebind< T >::type();
@@ -164,7 +163,7 @@ namespace Dune
* \tparam ...T a type parameter pack
*/
template< class... T >
static DUNE_CONSTEXPR inline typename make_index_sequence_impl< sizeof...( T ) >::type
static constexpr inline typename make_index_sequence_impl< sizeof...( T ) >::type
index_sequence_for ()
{
return typename make_index_sequence_impl< sizeof...( T ) >::type();
Loading