View Single Post
  #5 (permalink)  
Old January 1st, 2006, 02:47 PM
Jonax Jonax is offline
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

In the code in my first post I had both
Code:
    cBigApple operator -- () 
    {
        return cBigApple(--iWormCount, --fTotalLengthOfWorms, 0.0);
    }
and
Code:
    cBigRedApple operator -- (int)
    {
        return cBigRedApple(iWormCount--, fTotalLengthOfWorms--, 0.0);
    }
But the compiler complains that the line in main reading
Code:
    --oMyBigRedApple;
is an "Error: UnaryOverload.cpp(98,19):Illegal structure operation"


Reply With Quote