]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark all functions that are always_inline also as inline. 2042/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 11 Jan 2016 00:54:40 +0000 (18:54 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 11 Jan 2016 13:19:21 +0000 (07:19 -0600)
include/deal.II/base/tensor_accessors.h

index 7f5a71574ce359e77668f63313e48b899a67daaf..bae083f8817d5d9b953c4bfbeae1d0e97dba0d38 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 1998 - 2015 by the deal.II authors
+// Copyright (C) 1998 - 2016 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -183,7 +183,8 @@ namespace TensorAccessors
    * @author Matthias Maier, 2015
    */
   template <int index, int rank, typename T>
-  DEAL_II_ALWAYS_INLINE internal::ReorderedIndexView<index, rank, T>
+  inline DEAL_II_ALWAYS_INLINE
+  internal::ReorderedIndexView<index, rank, T>
   reordered_index_view(T &t)
   {
 #ifdef DEAL_II_WITH_CXX11
@@ -264,7 +265,8 @@ namespace TensorAccessors
    * @author Matthias Maier, 2015
    */
   template <int no_contr, int rank_1, int rank_2, int dim, typename T1, typename T2, typename T3>
-  DEAL_II_ALWAYS_INLINE void contract(T1 &result, const T2 &left, const T3 &right)
+  inline DEAL_II_ALWAYS_INLINE
+  void contract(T1 &result, const T2 &left, const T3 &right)
   {
 #ifdef DEAL_II_WITH_CXX11
     static_assert(rank_1 >= no_contr, "The rank of the left tensor must be "

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.