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*

3
  • 1
    what if Draw was overloaded with a string version later? Commented Mar 15, 2013 at 15:56
  • 1
    per @Dave Rager's answer, I don't think this will compile on all compilers. See my comment on his answer. Apparently, according to the c++ standard, you can't chain implicit conversions like this. You can only do one conversion and no more. Commented Mar 15, 2013 at 17:44
  • OK sorry, didn't actually compile this. Updated the example and it's still horrible, IMO. Commented Mar 16, 2013 at 6:56