cppunit测试一个大数运算,大数运算用的参数是list

man-douer 2013-06-04 04:03:43
求指点
错误如下:
--------------------Configuration: UnitTest - Win32 Debug--------------------
Compiling...
PlusTestCase.cpp
d:\cppunit-1.12.1\include\cppunit\testassert.h(49) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'const class std::list<char,class std::allocator<char> >' (or there is no acceptable conversion)
d:\cppunit-1.12.1\include\cppunit\testassert.h(47) : while compiling class-template member function 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CppUnit::assertion_traits<class std::list<ch
ar,class std::allocator<char> > >::toString(const class std::list<char,class std::allocator<char> > &)'
执行 cl.exe 时出错.
...全文
46 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

3,881

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 其它技术问题
社区管理员
  • 其它技术问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧