2021年10月27日星期三

Cpp取代static 不可在.h使用的方法

 .h

    enum class SMBServiceState { AVAILABLE, BUSY };
    SMBServiceState m_curr_state;

.c用

m_curr_state = SMBServiceState::AVAILABLE;