From: Tim Moore Date: Thu, 16 Jul 2009 10:53:11 +0000 (+0200) Subject: Use std::back_inserter instead of my local hack X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=68e64a5aa73548e7e96cadf4edc5d8e7e5116b9a;p=simgear.git Use std::back_inserter instead of my local hack BackRefInsertIterator is probably broken and may not be needed at all. --- diff --git a/simgear/scene/material/Effect.cxx b/simgear/scene/material/Effect.cxx index dbfd286b..ca04ae78 100644 --- a/simgear/scene/material/Effect.cxx +++ b/simgear/scene/material/Effect.cxx @@ -72,7 +72,7 @@ Effect::Effect(const Effect& rhs, const CopyOp& copyop) { using namespace boost; transform(rhs.techniques.begin(), rhs.techniques.end(), - backRefInsertIterator(techniques), + back_inserter(techniques), bind(simgear::clone_ref, _1, copyop)); } diff --git a/simgear/scene/material/Technique.cxx b/simgear/scene/material/Technique.cxx index c3f6b455..a49951e6 100644 --- a/simgear/scene/material/Technique.cxx +++ b/simgear/scene/material/Technique.cxx @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -60,7 +61,7 @@ Technique::Technique(const Technique& rhs, const osg::CopyOp& copyop) : using namespace std; using namespace boost; transform(rhs.passes.begin(), rhs.passes.end(), - backRefInsertIterator(passes), + back_inserter(passes), bind(simgear::clone_ref, _1, copyop)); }