From 003019be92135f489dedcb9e374102c6c1ea1bea Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Oct 2019 09:28:45 +0200 Subject: Make path_traits::*_separator constants initialization constexpr --- libbutl/path.mxx | 8 ++++---- 1 file 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 -- cgit v1.1