Skip to content

Commit 5f3db01

Browse files
committed
[HOTFIX] lib/vfs: Fix build error
The error was introduced by a4a56dd: lib/vfs/smaky6fs.cc:259:53: error: no matching function for call to 'Path::Path(std::vector<std::__cxx11::basic_string<char> >::const_iterator, __gnu_cxx::__normal_iterator<const std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >)' 259 | Path parentPath(path.begin(), path.end() - 1); | ^ The new code requires a new Path ctor to be exposed, was probably forgotten. Signed-off-by: Pavel Fedin <pavel_fedin@mail.ru> (cherry picked from commit 11735e8)
1 parent 5e3e672 commit 5f3db01

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/vfs/vfs.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Path::Path(const std::vector<std::string> other):
2323
{
2424
}
2525

26+
Path::Path(const std::vector<std::string>::const_iterator& begin, const std::vector<std::string>::const_iterator& end):
27+
std::vector<std::string>(begin, end)
28+
{
29+
}
30+
2631
Path::Path(const std::string& path)
2732
{
2833
if (path == "")

0 commit comments

Comments
 (0)