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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user