From 7eddbe517130e4cf7ef63ef264d01e750e77989d Mon Sep 17 00:00:00 2001 From: Yegor Derevenets Date: Fri, 13 Jan 2017 21:24:21 +0100 Subject: [PATCH] Fix #12759: add definitions of constexpr path members --- src/path.cpp | 4 ++++ test/path_test.cpp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/path.cpp b/src/path.cpp index a4588654..8d8161c9 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -125,6 +125,10 @@ namespace boost { namespace filesystem { + BOOST_CONSTEXPR value_type path::separator; + BOOST_CONSTEXPR value_type path::preferred_separator; + BOOST_CONSTEXPR value_type path::dot; + path& path::operator/=(const path& p) { if (p.empty()) diff --git a/test/path_test.cpp b/test/path_test.cpp index 99a5ee70..3f57550f 100644 --- a/test/path_test.cpp +++ b/test/path_test.cpp @@ -1939,6 +1939,12 @@ static boost::filesystem::path ticket_6737 = "FilePath"; // #6737 reported this // on VC++ debug mode build const boost::filesystem::path ticket_6690("test"); // #6690 another V++ static init crash +void ticket_12759(const path::value_type &) { + ticket_12759(path::separator); + ticket_12759(path::preferred_separator); + ticket_12759(path::dot); +} + //--------------------------------------------------------------------------------------// // // // main //