From: Daniel Arndt Date: Sun, 18 Nov 2018 11:34:17 +0000 (+0100) Subject: Constant initialization for Patterns' internal global variables X-Git-Tag: v9.1.0-rc1~542^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=712b729ed527c7c062a37c77f9ff809c72a4d646;p=dealii.git Constant initialization for Patterns' internal global variables --- diff --git a/include/deal.II/base/patterns.h b/include/deal.II/base/patterns.h index f5b300a8b0..c88df1bb2e 100644 --- a/include/deal.II/base/patterns.h +++ b/include/deal.II/base/patterns.h @@ -1568,9 +1568,9 @@ namespace Patterns namespace internal { - const std::array default_list_separator{ + constexpr std::array default_list_separator{ {",", ";", "|", "%"}}; - const std::array default_map_separator{ + constexpr std::array default_map_separator{ {":", "=", "@", "#"}}; // specialize a type for all of the STL containers and maps