Use std::back_inserter instead of my local hack

BackRefInsertIterator is probably broken and may not be needed at all.
This commit is contained in:
Tim Moore
2009-07-16 12:53:11 +02:00
committed by Tim Moore
parent 8e718fe288
commit 68e64a5aa7
2 changed files with 3 additions and 2 deletions

View 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));
}

View 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));
}