0_0_24651241_28182.cpp
0_0_24651241_28182.cpp(21) : error C2664: “int std::basic_string<char,std::char_traits<char>,std::allocator<char>>::compare(unsigned int,unsigned int,const _Elem *,unsigned int) const”: 无法将参数 1 从“char”转换为“const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &”
with
[
_Elem=char
]
原因如下: 无法从“char”转换为“const std::basic_string<char,std::char_traits<char>,std::allocator<char>>”
无构造函数可以接受源类型,或构造函数重载决策不明确
|