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.

Required fields*

9
  • 1
    What is the value of CharArray when you are finished default-constructing? Commented Apr 28, 2010 at 0:31
  • 1
    Can you post the code where you use this? I suspect that you may have code using the default constructor, which leaves CharArray uninitialized. Commented Apr 28, 2010 at 0:32
  • 1
    Why this->member when you can say just member? Commented Apr 28, 2010 at 0:34
  • I do have other classes that use my custom String class. For example, I have: Email::Email(const String& email) Other than this, I only construct a string with a value e.g.: String temp(buffer); Commented Apr 28, 2010 at 0:37
  • Can you post your h file as well. I'm curious about charArray's type. Commented Apr 28, 2010 at 0:40