Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • I don't think that's what he wants, since counter is being modified later.
    – PMF
    Commented Dec 1, 2013 at 8:02
  • @PMF: Yeah, you're right! Commented Dec 1, 2013 at 8:03
  • I want initialize counter and later increment it with the constructor. Then decrement it with the destructor. Commented Dec 1, 2013 at 8:15
  • 1
    I don't think the error message can be any clearer.
    – SwiftMango
    Commented Dec 1, 2013 at 8:42
  • 2
    @texasbruce The error message only tells you what's wrong, not how to solve the problem.
    – mucaho
    Commented Nov 9, 2015 at 19:51