Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
dune-vtk
Commits
519f0fd3
Commit
519f0fd3
authored
Dec 03, 2018
by
Praetorius, Simon
Browse files
bug in filesystem relative() corrected
parent
ba7a8410
Changes
1
Hide whitespace changes
Inline
Side-by-side
dune/vtk/utility/filesystem.cc
View file @
519f0fd3
...
...
@@ -26,7 +26,7 @@ namespace Dune { namespace filesystem {
std
::
string
path
::
string
()
const
{
if
(
empty
())
return
""
;
return
"
.
"
;
auto
it
=
begin
();
auto
result
=
*
it
;
...
...
@@ -180,11 +180,11 @@ path relative(path const& a, path const& b)
}
// combine remaining parts of a to result path
path
rel
(
*
a_it
++
);
path
rel
(
"."
);
for
(;
a_it
!=
a
.
end
();
++
a_it
)
rel
/=
*
a_it
;
return
rel
;
}
}
}
// end namespace D
ec
}
}
// end namespace D
une::filesystem
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment