From 94c3d582d36294368c0a1f53edc3224c1a0d0c3a Mon Sep 17 00:00:00 2001
From: Joseph Mirabel <jmirabel@laas.fr>
Date: Tue, 19 Aug 2014 11:11:31 +0200
Subject: [PATCH] Fix bug: Use Dynamic Cast instead of Path::as<>

---
 src/graph-path-validation.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/graph-path-validation.cc b/src/graph-path-validation.cc
index 4879bc1..f27f669 100644
--- a/src/graph-path-validation.cc
+++ b/src/graph-path-validation.cc
@@ -74,7 +74,7 @@ namespace hpp {
     bool GraphPathValidation::impl_validate (
         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)
         return impl_validate (pathVector, reverse, validPart);
 
-- 
GitLab