From Ryan Pavlik, "I have successfully compiled OpenSceneGraph trunk using the Clang compiler (using a recent trunk build of llvm and clang, haven't tested an older release). The attached files contain the change shown in the diff below, which was required to finish the build with Clang. It fixes an issue with two-phase name lookup - there's more information here http://blog.llvm.org/2009/12/dreaded-two-phase-name-lookup.html
"
This commit is contained in:
@@ -156,7 +156,7 @@ class TemplateArray : public Array, public MixinVector<T>
|
||||
TemplateArray& operator = (const TemplateArray& array)
|
||||
{
|
||||
if (this==&array) return *this;
|
||||
assign(array.begin(),array.end());
|
||||
this->assign(array.begin(),array.end());
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ class TemplateIndexArray : public IndexArray, public MixinVector<T>
|
||||
TemplateIndexArray& operator = (const TemplateIndexArray& array)
|
||||
{
|
||||
if (this==&array) return *this;
|
||||
assign(array.begin(),array.end());
|
||||
this->assign(array.begin(),array.end());
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user