What is this conversion called?

Posted by LoudNPossiblyRight on Stack Overflow See other posts from Stack Overflow or by LoudNPossiblyRight
Published on 2010-06-02T14:51:11Z Indexed on 2010/06/02 16:23 UTC
Read the original article Hit count: 265

Filed under:
|

Is there a name or a term for this type of conversion in the c++ community? Has anyone seen this conversion be referred to as "implicit conversion"?

class ALPHA{};

class BETA{
    public:
        operator ALPHA(){return alpha;}
    private:
        ALPHA alpha;
};

void func(ALPHA alpha){}

int main(){
    BETA beta;
    func(beta);
    return 0;
}

© Stack Overflow or respective owner

Related posts about c++

Related posts about terminology