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.

3
  • why not copy construct it directly obj = OtherType(parsedData); in the constructors body. if you make the default constructor private, it will not compile Commented Nov 20, 2016 at 2:15
  • from my understanding that will cause a call to obj default constructor since all Game data members have to be initialized before entering the body, i would like to save that call. Commented Nov 20, 2016 at 2:21
  • yes, before entering the body constructor, all default constructor of objects will be called. john zwick solution is good Commented Nov 20, 2016 at 2:26