overloading operators

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • B.R.Kumar

    overloading operators

    y can't operators like .,.*,sizeof be overloaded?????

    Regards
  • Josephine Schafer

    #2
    Re: overloading operators


    "B.R.Kumar" <zeebrk@rediffm ail.com> wrote in message
    news:9bc72a61.0 310100307.2bf97 8cd@posting.goo gle.com...[color=blue]
    > y can't operators like .,.*,sizeof be overloaded?????
    >[/color]

    Refer to Clause 5 and 13.6 of the C++ standard.
    Snippet from Section 13.3.1.2
    "..Note: because ., .*, and :: cannot be overloaded, these operators are always
    built-in operators interpreted according to clause 5"


    HTH,
    J.Schafer


    Comment

    • rossum

      #3
      Re: overloading operators

      On 10 Oct 2003 04:07:13 -0700, zeebrk@rediffma il.com (B.R.Kumar)
      wrote:
      [color=blue]
      >y can't operators like .,.*,sizeof be overloaded?????
      >
      >Regards[/color]

      Let Bjarne explain:


      rossum

      --

      The Ultimate Truth is that there is no Ultimate Truth

      Comment

      Working...