[Boost-bugs] [Boost C++ Libraries] #12759: filesystem::path::{separator, preferred_separator, dot} should have definitions

Subject: [Boost-bugs] [Boost C++ Libraries] #12759: filesystem::path::{separator, preferred_separator, dot} should have definitions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-13 18:52:39


#12759: filesystem::path::{separator,preferred_separator,dot} should have
definitions
-------------------------------------------------+-------------------------
 Reporter: Yegor Derevenets | Owner: bemandawes
  <yegor.derevenets@…> | Status: new
     Type: Bugs | Component: filesystem
Milestone: To Be Determined | Severity: Problem
  Version: Boost 1.63.0 |
 Keywords: |
-------------------------------------------------+-------------------------
 Static constexpr members of boost::filesystem::path should have
 definitions.
 Currently they do not, which leads to, e.g., the following code not
 compiling:

 {{{
 $ cat main.cpp
 #include <boost/filesystem/path.hpp>

 void f(const char &) {
 }

 int main() {
         f(boost::filesystem::path::preferred_separator);
 }

 $ g++ -std=c++14 -lboost_filesystem -lboost_system main.cpp
 /tmp/ccuhjyO3.o: In function `main':
 main.cpp:(.text+0x12): undefined reference to
 `boost::filesystem::path::preferred_separator'
 collect2: error: ld returned 1 exit status
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12759>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC