From ec7b7e37ce97d25adc209befb2c12cf16eb06ef1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 28 Jun 2016 13:00:14 +0300 Subject: Port to MSVC --- build2/variable.cxx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'build2/variable.cxx') diff --git a/build2/variable.cxx b/build2/variable.cxx index 65bc023..67efc95 100644 --- a/build2/variable.cxx +++ b/build2/variable.cxx @@ -333,7 +333,7 @@ namespace build2 throw invalid_argument (string ()); } - constexpr const char* const value_traits::type_name = "bool"; + const char* const value_traits::type_name = "bool"; const value_type value_traits::value_type { @@ -373,7 +373,7 @@ namespace build2 throw invalid_argument (string ()); } - constexpr const char* const value_traits::type_name = "uint64"; + const char* const value_traits::type_name = "uint64"; const value_type value_traits::value_type { @@ -459,7 +459,7 @@ namespace build2 return s; } - constexpr const char* const value_traits::type_name = "string"; + const char* const value_traits::type_name = "string"; const value_type value_traits::value_type { @@ -504,7 +504,7 @@ namespace build2 throw invalid_argument (string ()); } - constexpr const char* const value_traits::type_name = "path"; + const char* const value_traits::type_name = "path"; const value_type value_traits::value_type { @@ -547,7 +547,7 @@ namespace build2 throw invalid_argument (string ()); } - constexpr const char* const value_traits::type_name = "dir_path"; + const char* const value_traits::type_name = "dir_path"; const value_type value_traits::value_type { @@ -580,8 +580,7 @@ namespace build2 return abs_dir_path (move (d)); } - constexpr const char* const value_traits::type_name = - "abs_dir_path"; + const char* const value_traits::type_name = "abs_dir_path"; const value_type value_traits::value_type { @@ -616,7 +615,7 @@ namespace build2 return names_view (&v.as (), 1); } - constexpr const char* const value_traits::type_name = "name"; + const char* const value_traits::type_name = "name"; const value_type value_traits::value_type { -- cgit v1.1