Skip to content

Instantly share code, notes, and snippets.

@austinglaser
Created August 11, 2013 06:02
Show Gist options
  • Select an option

  • Save austinglaser/6203601 to your computer and use it in GitHub Desktop.

Select an option

Save austinglaser/6203601 to your computer and use it in GitHub Desktop.
int bstNode<Item>::increment(int count)
{
increment(count);
if (left_field)
count= left_field->size()+1;
else
{ return 0;}
if (right_field)
count= left_field->size()+1;
else
{ return 0;}
}
@nityan
Copy link
Copy Markdown

nityan commented Mar 21, 2014

You have infinite recursion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment