workaround for vc++ bug

This commit is contained in:
David Rose 2002-03-11 17:53:54 +00:00
parent 9145e25ad4
commit d27eb921dc
1 changed files with 7 additions and 1 deletions

View File

@ -124,7 +124,13 @@ complete_pointers(TypedWritable **p_list, BamReader *manager) {
Up::iterator ui;
for (ui = _up.begin(); ui != _up.end(); ++ui) {
PT(PandaNode) parent_node = DCAST(PandaNode, p_list[pi++]);
(*ui) = UpConnection(parent_node);
// For some reason, VC++ won't accept UpConnection as an inline
// temporary constructor here ("C2226: unexpected type
// PandaNode::UpConnection"), so we must make this assignment
// using an explicit temporary variable.
UpConnection connection(parent_node);
(*ui) = connection;
}
// Get the child pointers.