Skip to content
Snippets Groups Projects
Commit 94c3d582 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix bug: Use Dynamic Cast instead of Path::as<>

parent 2ef6b380
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ namespace hpp { ...@@ -74,7 +74,7 @@ namespace hpp {
bool GraphPathValidation::impl_validate ( bool GraphPathValidation::impl_validate (
const PathPtr_t& path, bool reverse, PathPtr_t& validPart) const PathPtr_t& path, bool reverse, PathPtr_t& validPart)
{ {
PathVectorPtr_t pathVector (path->as <PathVector> ()); PathVectorPtr_t pathVector = HPP_DYNAMIC_PTR_CAST(PathVector, path);
if (pathVector) if (pathVector)
return impl_validate (pathVector, reverse, validPart); return impl_validate (pathVector, reverse, validPart);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment