随笔分类 -  c++错误

摘要:在vs正常执行,在gcc报错:Invalid arguments ' Candidates are: #1 transform(#0, #0, #1, #2) #2 transform(#0, #0, #1, #2, #3) ' 原因:vs调用的是algorithm文件中的transform方法,而 阅读全文
posted @ 2019-09-04 17:44 江凌何以万里 阅读(458) 评论(0) 推荐(0)
摘要:代码十分简单,通过对比vs,得知gcc调用的是ostream.tcc文件中的write函数write(const _CharT* __s, streamsize __n)。 vs中是定义在ostream文件中的write(const _Elem* _Str,streamsize _Count),gc 阅读全文
posted @ 2019-09-03 12:19 江凌何以万里 阅读(645) 评论(1) 推荐(0)
摘要:gcc编译报错catching polymorphic type 'class std::exception' by value [-Wcatch-value=]; 阅读全文
posted @ 2019-09-02 18:35 江凌何以万里 阅读(1993) 评论(1) 推荐(0)