#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

  • Nobody/Anonymous

    Logged In: NO

    Sorry, I missed Stlport version.
    the version was 4.6.2

     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2006-12-27

    Logged In: YES
    user_id=615813
    Originator: NO

    1. 4.6.2 unsupported.
    2. Not STLport issue.

     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2006-12-27
    • priority: 5 --> 1
    • status: open --> closed-rejected
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks