]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove some references to older C++ versions. 5815/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 27 Jan 2018 02:41:35 +0000 (21:41 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 27 Jan 2018 04:59:10 +0000 (23:59 -0500)
We now require C++11 so these statements are not correct.

include/deal.II/fe/fe_system.h
include/deal.II/grid/filtered_iterator.h
include/deal.II/grid/tria.h
include/deal.II/hp/dof_handler.h

index 4f8ae614bf028a7a3efd79fc1bbbf8326a4c0e7e..6411fd99b6dcfaa8ab7f3484c5d17125a56865b5 100644 (file)
@@ -295,8 +295,7 @@ public:
    *
    * This code has a problem: it creates four memory leaks because the first
    * vector above is created with pointers to elements that are allocated with
-   * <code>new</code> but never destroyed. Without C++11, you would have another
-   * problem: brace-initializer don't exist in earlier C++ standards.
+   * <code>new</code> but never destroyed.
    *
    * The solution to the second of these problems is to create two static
    * member functions that can create vectors. Here is an example:
index 3fe1b1064d0bb070019dd96fe08eb5825de84760..06ecd9734e6c77d25d6702aabc44cbe51463b490 100644 (file)
@@ -1289,13 +1289,8 @@ namespace IteratorFilters
   MaterialIdEqualTo::MaterialIdEqualTo (const types::material_id material_id,
                                         const bool only_locally_owned)
     :
-    // Note: matrial_ids is a const member and has to be populated with a
-    // constructor. Unfortunately, C++98/03 does not allow the use of an
-    // initializer list. Therefore, treat material_id as an array of one
-    // element.
-    // This is well defined according to [expr.add].4 (ISO 14882).
-    material_ids (&material_id, &material_id+1),
-    only_locally_owned (only_locally_owned)
+    material_ids {material_id},
+               only_locally_owned (only_locally_owned)
   {}
 
 
@@ -1327,13 +1322,8 @@ namespace IteratorFilters
   ActiveFEIndexEqualTo::ActiveFEIndexEqualTo (const unsigned int active_fe_index,
                                               const bool only_locally_owned)
     :
-    // Note: active_fe_indices is a const member and has to be populated
-    // with a constructor. Unfortunately, C++98/03 does not allow the use
-    // of an initializer list. Therefore, treat active_fe_index as an array
-    // of one element.
-    // This is well defined according to [expr.add].4 (ISO 14882).
-    active_fe_indices (&active_fe_index, &active_fe_index+1),
-    only_locally_owned (only_locally_owned)
+    active_fe_indices {active_fe_index},
+                    only_locally_owned (only_locally_owned)
   {}
 
 
@@ -1377,5 +1367,3 @@ DEAL_II_NAMESPACE_CLOSE
 /*------------------------- filtered_iterator.h ------------------------*/
 #endif
 /*------------------------- filtered_iterator.h ------------------------*/
-
-
index 865e1016e50d59463b6b8043aa0ce6b16fd07721..2ff64a1b8bfa892ac587451a1f942d6e83cced39 100644 (file)
@@ -2683,7 +2683,6 @@ public:
    *   for (auto cell : triangulation.active_cell_iterators())
    *     cell->set_user_flag();
    * @endcode
-   * To use this feature, you need a compiler that supports C++11.
    *
    * @return The half open range <code>[this->begin_active(),
    * this->end())</code>
index e5ccb23246b7c6e9c29b489855cd25799b6159f8..c7aa4c0fb6cd802791300fe9f22faa721f976339 100644 (file)
@@ -513,7 +513,6 @@ namespace hp
      *       ...do the local integration on 'cell'...;
      *     }
      * @endcode
-     * To use this feature, you need a compiler that supports C++11.
      *
      * @return The half open range <code>[this->begin_active(),
      * this->end())</code>

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.