std::string get_path( void ) { return m_devicePath; }
调试输出:
hid_device.h(37) : error C2664: >'std::basic_string<_Elem,_Traits,_Ax>::basic_string(std::basic_string<_Elem,_Traits,_Ax>::>_Has_debug_it)' : 无法从'unsigned long' 到 >'std::basic_string<_Elem,_Traits,_Ax>::_Has_debug_it' 与 [ _Elem=char, _Traits=std::char_traits, _Ax=std::allocator ] 结构 'std::basic_string 的构造函数<_Elem,_Traits,_Ax>::_Has_debug_it' 用 [ _Elem=char, _Traits=std::char_traits, _Ax=std::allocator ] 声明为“显式”