Help following the main thread without being distracted.
pull/46/head
Gabriel Dos Reis 10 years ago
parent 286cec8d63
commit e85995ed0b

@ -2363,7 +2363,7 @@ Returning a `T*` to transfer ownership is a misuse.
Node* find(Node* t, const string& s) // find s in a binary tree of Nodes
{
if (t->name==s) return t;
if (t == nullptr || t->name == s) return t;
if (auto p = find(t->left,s)) return p;
if (auto p = find(t->right,s)) return p;
return nullptr;

Loading…
Cancel
Save