In the class below,
Why would you make the operators explicit
. I thought that explicit
was to prevent implicit calling of constructors?
class Content
{
public:
virtual ~Content() = 0;
virtual explicit operator float&();
virtual explicit operator long long&();
virtual explicit operator std::string&()
}
Aucun commentaire:
Enregistrer un commentaire