]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove noexcept on DoFAccessor move constructor and assignment operator 12354/head
authorSimon Sticko <simon@sticko.se>
Fri, 28 May 2021 09:42:10 +0000 (11:42 +0200)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 29 May 2021 23:03:14 +0000 (19:03 -0400)
To avoid a compilation error with clang 6.0.0

include/deal.II/dofs/dof_accessor.h

index 494facc68da52adbbaf12fd5263dc7fd2d364a95..a011cda7dab52b26e84ac3131a7c9ce30fcfb6b5 100644 (file)
@@ -277,8 +277,9 @@ public:
   /**
    * Move constructor.
    */
-  DoFAccessor(DoFAccessor<structdim, dim, spacedim, level_dof_access>
-                &&) noexcept = default;
+  DoFAccessor(                                                    // NOLINT
+    DoFAccessor<structdim, dim, spacedim, level_dof_access> &&) = // NOLINT
+    default;                                                      // NOLINT
 
   /**
    * Destructor.
@@ -330,9 +331,10 @@ public:
   /**
    * Move assignment operator.
    */
-  DoFAccessor<structdim, dim, spacedim, level_dof_access> &
-  operator=(DoFAccessor<structdim, dim, spacedim, level_dof_access>
-              &&) noexcept = default;
+  DoFAccessor<structdim, dim, spacedim, level_dof_access> &       // NOLINT
+  operator=(                                                      // NOLINT
+    DoFAccessor<structdim, dim, spacedim, level_dof_access> &&) = // NOLINT
+    default;                                                      // NOLINT
 
   /**
    * @}
@@ -1455,9 +1457,9 @@ public:
   /**
    * Move constructor.
    */
-  DoFCellAccessor(
-    DoFCellAccessor<dimension_, space_dimension_, level_dof_access>
-      &&) noexcept = default;
+  DoFCellAccessor(                                                  // NOLINT
+    DoFCellAccessor<dimension_, space_dimension_, level_dof_access> // NOLINT
+      &&) = default;                                                // NOLINT
 
   /**
    * Destructor
@@ -1481,9 +1483,10 @@ public:
   /**
    * Move assignment operator.
    */
-  DoFCellAccessor<dimension_, space_dimension_, level_dof_access> &
-  operator=(DoFCellAccessor<dimension_, space_dimension_, level_dof_access>
-              &&) noexcept = default;
+  DoFCellAccessor<dimension_, space_dimension_, level_dof_access> & // NOLINT
+  operator=(                                                        // NOLINT
+    DoFCellAccessor<dimension_, space_dimension_, level_dof_access> // NOLINT
+      &&) = default;                                                // NOLINT
 
   /**
    * @}

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.