You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
What steps will reproduce the problem?
When Node::GetAttribute is called with any POD type for a node which
doesn't contain the attribute specified, the value returned is undefined.
It causes a debug break in VS: "Variable used without being initialized".
E.g.:
bool res = node->GetAttribute<bool>("something", false);
To fix it, replace:
T value;
with
T value = T();
Original issue reported on code.google.com by [email protected] on 24 Jul 2009 at 6:26
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 24 Jul 2009 at 6:26The text was updated successfully, but these errors were encountered: