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
  • First, olease try to cleanup the code you attached a bit. Is it necessary to see the parts disabled by preprocessor? Second, why is the operator not a friend? How is it supposed to access the private members of the triplet class? Commented Jan 29, 2010 at 3:33
  • 1
    Keep in mind when you do tags, the language should at least be in it :P
    – GManNickG
    Commented Jan 29, 2010 at 4:50
  • This article explains exactly your problem and how you should use namespaces: gotw.ca/publications/mill08.htm
    – sellibitze
    Commented Jan 29, 2010 at 6:02