mercredi 3 juin 2015

What does this "return ~Result(0)" mean in C++?

I have never seen this before... just curious to know what "return ~Result(0)" does.

Simple::Result Screen::pickPoint(const Point& Point) const
    {

    if(scnr.hasPoint())
        return scnr.getIndex();
    else
        return ~Result(0);
    }

Aucun commentaire:

Enregistrer un commentaire