Opened 6 years ago
Closed 4 years ago
#12759 closed Bugs (fixed)
filesystem::path::{separator,preferred_separator,dot} should have definitions
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | filesystem |
Version: | Boost 1.63.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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
Change History (2)
comment:1 by , 6 years ago
comment:2 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
A possible fix: https://github.com/boostorg/filesystem/pull/40