Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#101 compile error with operator &

closed-rejected
nobody
1
2006-12-27
2006-12-25
Anonymous
No

class vct
{
private:
float p[3];

public:
vct()
{
}

inline float* operator & ()
{
return p;
}

inline const float* operator & () const
{
return p;
}
};

vector<vct> tmp;
vct t;
tmp.push_back(t); // @@@@

// In MSVC6, @@@@ does not compile.
(error code C2440)

/////////////////////////////////////
suewonjp@yahoo.co.jp
/////////////////////////////////////

Discussion

  • Logged In: NO

    Sorry, I missed Stlport version.
    the version was 4.6.2

     
  • Logged In: YES
    user_id=615813
    Originator: NO

    1. 4.6.2 unsupported.
    2. Not STLport issue.

     
    • priority: 5 --> 1
    • status: open --> closed-rejected