error C2662: “CMaDirOperation::chang_file_type”: 不能将“this”指针从“const CMaDirOperation”转换为“CMaDirOperat

问题:

    error C2662: “CMaDirOperation::chang_file_type”: 不能将“this”指针从“const CMaDirOperation”转换为“CMaDirOperation &”




解答:

    1. 对象CMaDirOperation是一个const对象, const CMaDirOperation &


    2. CMaDirOperation的函数chang_file_type(),不是const的。


    3. 应将函数其声明为const函数。

你可能感兴趣的:(error C2662: “CMaDirOperation::chang_file_type”: 不能将“this”指针从“const CMaDirOperation”转换为“CMaDirOperat)