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