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*

5
  • 1
    Same for assignment operator Commented Nov 19, 2012 at 19:56
  • 1
    @Lol4t0 Thanks, I was just adding that. Commented Nov 19, 2012 at 19:57
  • 1
    I would suggest altering the double & constructor in a different way -- drop the reference entirely. You don't really get any benefit by using references for such small types; they only serve to add an unnecessary level of indirection (when inlining is not possible, that is). Commented Nov 19, 2012 at 19:59
  • 1
    @cdhowie I added a comment. I don't see it as an important issue (although I would have not used a reference). Commented Nov 19, 2012 at 20:06
  • 1
    @juanchopanza Nope, it's not an important issue at all, just thought I would point it out. Commented Nov 19, 2012 at 20:07