- 运行时提示错误:
terminate called after throwing an instance of ‘std::logic_error’
what(): basic_string::_S_construct null not valid
解决:string构造不能传入空指针xxx,即在xxx为空时会报上面错误,保证func返回不为空即可。2021.03.27
转载自:CypherF(知乎)
terminate called after throwing an instance of ‘std::logic_error’
what(): basic_string::_S_construct null not valid
解决:string构造不能传入空指针xxx,即在xxx为空时会报上面错误,保证func返回不为空即可。2021.03.27
转载自:CypherF(知乎)