diff --git a/include/osgSim/ShapeAttribute b/include/osgSim/ShapeAttribute index a0acbb21a..3ea86e9db 100644 --- a/include/osgSim/ShapeAttribute +++ b/include/osgSim/ShapeAttribute @@ -87,7 +87,7 @@ class OSGSIM_EXPORT ShapeAttributeList : public osg::Object, public std::vector< ShapeAttributeList(const ShapeAttributeList& sal,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY): osg::Object(sal, copyop) { - copy(sal.begin(),sal.end(), begin()); + std::copy(sal.begin(),sal.end(), begin()); } /** return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.*/ diff --git a/src/osgSim/ShapeAttribute.cpp b/src/osgSim/ShapeAttribute.cpp index 795c7cfef..caf10311e 100644 --- a/src/osgSim/ShapeAttribute.cpp +++ b/src/osgSim/ShapeAttribute.cpp @@ -1,3 +1,4 @@ +#include #include namespace osgSim