mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
gcc compatibility
This commit is contained in:
@@ -119,7 +119,7 @@ typename V::list::ptr get_related(T* t, F f, G g) {
|
||||
typename V::list::ptr acc(new typename V::list);
|
||||
for (typename U::list::it it = li->begin(); it != li->end(); ++it) {
|
||||
U* u = *it;
|
||||
acc->push((*u.*g)()->as<V>());
|
||||
acc->push((*u.*g)()->template as<V>());
|
||||
}
|
||||
return acc;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace IfcUtil {
|
||||
virtual const char* getArgumentName(unsigned int i) const = 0;
|
||||
|
||||
template <class T>
|
||||
typename T* as() {
|
||||
T* as() {
|
||||
return is(T::Class())
|
||||
? static_cast<T*>(this)
|
||||
: static_cast<T*>(0);
|
||||
|
||||
Reference in New Issue
Block a user