]> git.mxchange.org Git - simgear.git/commitdiff
Use std::back_inserter instead of my local hack
authorTim Moore <moore@blackbox.bricoworks.com>
Thu, 16 Jul 2009 10:53:11 +0000 (12:53 +0200)
committerTim Moore <timoore@redhat.com>
Thu, 16 Jul 2009 11:02:07 +0000 (13:02 +0200)
BackRefInsertIterator is probably broken and may not be needed at all.

simgear/scene/material/Effect.cxx
simgear/scene/material/Technique.cxx

index dbfd286bf7aaf159a1e932da91aa37ff58f79aeb..ca04ae78f0be12759a82aec41eea230d861a27a2 100644 (file)
@@ -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<Technique>, _1, copyop));
 }
 
index c3f6b45505f5c4d77066c5a610611582fed8e6d7..a49951e6566eaa2f66a04e1d2c15921fff509ee8 100644 (file)
@@ -4,6 +4,7 @@
 #include <boost/bind.hpp>
 #include <boost/foreach.hpp>
 
+#include <iterator>
 #include <vector>
 #include <string>
 
@@ -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<Pass>, _1, copyop));
 
 }