aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-08 09:28:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-08 09:28:45 +0200
commit003019be92135f489dedcb9e374102c6c1ea1bea (patch)
tree035984edcb409600cd744dea19fcfdfbf9aa6fb5
parentc8802a33677dd84b5736c333c6821d6eba992b97 (diff)
Make path_traits::*_separator constants initialization constexpr
-rw-r--r--libbutl/path.mxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbutl/path.mxx b/libbutl/path.mxx
index 4f3a028..114c25a 100644
--- a/libbutl/path.mxx
+++ b/libbutl/path.mxx
@@ -102,11 +102,11 @@ LIBBUTL_MODEXPORT namespace butl
// Canonical directory and path seperators.
//
#ifdef _WIN32
- static const C directory_separator = '\\';
- static const C path_separator = ';';
+ static constexpr const C directory_separator = '\\';
+ static constexpr const C path_separator = ';';
#else
- static C const directory_separator = '/';
- static C const path_separator = ':';
+ static constexpr const C directory_separator = '/';
+ static constexpr const C path_separator = ':';
#endif
// Canonical and alternative directory separators. Canonical should be