Now the real fix for old compilers...
This commit is contained in:
@@ -1168,13 +1168,18 @@ namespace nasal
|
|||||||
SG_GET_TEMPLATE_MEMBER(Ghost, destroy<weak_ref>);
|
SG_GET_TEMPLATE_MEMBER(Ghost, destroy<weak_ref>);
|
||||||
_ghost_type_weak.name = _name_weak.c_str();
|
_ghost_type_weak.name = _name_weak.c_str();
|
||||||
|
|
||||||
bool can_weak = supports_weak_ref<T>::value;
|
if( supports_weak_ref<T>::value )
|
||||||
_ghost_type_weak.get_member = can_weak
|
{
|
||||||
? SG_GET_TEMPLATE_MEMBER(Ghost, getMember<true>)
|
_ghost_type_weak.get_member =
|
||||||
: 0;
|
SG_GET_TEMPLATE_MEMBER(Ghost, getMember<true>);
|
||||||
_ghost_type_weak.set_member = can_weak
|
_ghost_type_weak.set_member =
|
||||||
? SG_GET_TEMPLATE_MEMBER(Ghost, setMember<true>)
|
SG_GET_TEMPLATE_MEMBER(Ghost, setMember<true>);
|
||||||
: 0;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_ghost_type_weak.get_member = 0;
|
||||||
|
_ghost_type_weak.set_member = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static GhostPtr& getSingletonHolder()
|
static GhostPtr& getSingletonHolder()
|
||||||
|
|||||||
Reference in New Issue
Block a user