随笔分类 - c++错误
摘要:在vs正常执行,在gcc报错:Invalid arguments ' Candidates are: #1 transform(#0, #0, #1, #2) #2 transform(#0, #0, #1, #2, #3) ' 原因:vs调用的是algorithm文件中的transform方法,而
阅读全文
摘要:代码十分简单,通过对比vs,得知gcc调用的是ostream.tcc文件中的write函数write(const _CharT* __s, streamsize __n)。 vs中是定义在ostream文件中的write(const _Elem* _Str,streamsize _Count),gc
阅读全文
摘要:gcc编译报错catching polymorphic type 'class std::exception' by value [-Wcatch-value=];
阅读全文