From: sbh Date: Fri, 3 Apr 2015 06:48:53 +0000 (+0300) Subject: make compilable under debian linux X-Git-Tag: V_1.1.0~57^2~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9f48e35e26dfce648e2f6ecbe1e43c51ba32a7e;p=modules%2Fshaper.git make compilable under debian linux --- diff --git a/src/SketchSolver/SketchSolver_Builder.cpp b/src/SketchSolver/SketchSolver_Builder.cpp index a1823bd36..c46ec2c95 100644 --- a/src/SketchSolver/SketchSolver_Builder.cpp +++ b/src/SketchSolver/SketchSolver_Builder.cpp @@ -42,6 +42,7 @@ #include #include +#include // Initialization of constraint builder self pointer SketchSolver_Builder* SketchSolver_Builder::mySelf = 0; diff --git a/src/SketchSolver/SketchSolver_Constraint.cpp b/src/SketchSolver/SketchSolver_Constraint.cpp index 012c45c6e..b21b463fb 100644 --- a/src/SketchSolver/SketchSolver_Constraint.cpp +++ b/src/SketchSolver/SketchSolver_Constraint.cpp @@ -12,6 +12,7 @@ #include #include +#include SketchSolver_Constraint::SketchSolver_Constraint( ConstraintPtr theConstraint) diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index 1ad3646dd..620768680 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -110,7 +111,7 @@ bool SketchSolver_Group::isInteract( ConstraintPtr aConstraint = std::dynamic_pointer_cast(theFeature); if (aConstraint) return myFeatureStorage->isInteract(aConstraint); - return myFeatureStorage->isInteract(theFeature); + return myFeatureStorage->isInteract(std::dynamic_pointer_cast(theFeature)); } // ============================================================================ @@ -244,7 +245,8 @@ bool SketchSolver_Group::changeConstraint( bool SketchSolver_Group::updateFeature(std::shared_ptr theFeature) { - std::set aConstraints = myFeatureStorage->getConstraints(theFeature); + std::set aConstraints = + myFeatureStorage->getConstraints(std::dynamic_pointer_cast(theFeature)); if (aConstraints.empty()) return false; std::set::iterator aCIter = aConstraints.begin(); diff --git a/src/SketchSolver/SketchSolver_Storage.cpp b/src/SketchSolver/SketchSolver_Storage.cpp index 244bc1c7d..9dbf54f0c 100644 --- a/src/SketchSolver/SketchSolver_Storage.cpp +++ b/src/SketchSolver/SketchSolver_Storage.cpp @@ -6,6 +6,8 @@ #include +#include + /** \brief Search the entity/parameter with specified ID in the list of elements * \param[in] theEntityID unique ID of the element * \param[in] theEntities list of elements