+1
0
-1

Overriding & sign in class

We override the "&" for our class to point to the start of a member within the class, rather than the address of the class. When compiling vectorCAST, it doesn't like this, does...

Posting in: 

1 Answers:

+1
0
-1

Hi,

I've tried some very simple and naïve code.

class blah
{
  private:
    int a;
  public:
   class blah *operator &() { return (class blah *) &a...