]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Constant initialization for Patterns' internal global variables
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 18 Nov 2018 11:34:17 +0000 (12:34 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 18 Nov 2018 11:34:17 +0000 (12:34 +0100)
include/deal.II/base/patterns.h

index f5b300a8b0a08603730ed68751752e1ed6a93242..c88df1bb2e292ee0fbfed6d922a512604a70ca9c 100644 (file)
@@ -1568,9 +1568,9 @@ namespace Patterns
 
     namespace internal
     {
-      const std::array<std::string, 4> default_list_separator{
+      constexpr std::array<const char *, 4> default_list_separator{
         {",", ";", "|", "%"}};
-      const std::array<std::string, 4> default_map_separator{
+      constexpr std::array<const char *, 4> default_map_separator{
         {":", "=", "@", "#"}};
 
       // specialize a type for all of the STL containers and maps

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.