summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ingen/FilePath.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ingen/FilePath.hpp b/ingen/FilePath.hpp
index 7ad341e0..f81e59c0 100644
--- a/ingen/FilePath.hpp
+++ b/ingen/FilePath.hpp
@@ -60,7 +60,9 @@ public:
FilePath(string_type&& str) : _str(std::move(str)) {}
FilePath(const string_type& str) : _str(str) {}
FilePath(const value_type* str) : _str(str) {}
- FilePath(const boost::basic_string_view<value_type>& sv) : _str(sv) {}
+ FilePath(const boost::basic_string_view<value_type>& sv)
+ : _str(sv.data(), sv.length())
+ {}
~FilePath() = default;