首页 > 其他 > 详细

[开发工具]_[VS2010]_[vs2010的一个bug-使用stringstream时出现]

时间:2015-07-12 17:24:01      阅读:262      评论:0      收藏:0      [点我收藏+]


1. 注册Microsfot之后想提交bug, 发现有这个提示, 所以提交不了bug, 有能提交的提交下吧.

You are not authorized to submit the feedback for this connection.


2. VS2010 sp1的bug, temp为竟然为空.


TEST(test_Aa,StringStream)
{
	std::stringstream ss;
	ss << 0;
	const char* temp = ss.str().c_str();
	std::cout << "temp: " << temp << std::endl;
}

这里我使用vs2010 sp1的temp输出为空, g++就正常输出为0.

vs2010:

temp:



版权声明:本文为博主原创文章,未经博主允许不得转载。

[开发工具]_[VS2010]_[vs2010的一个bug-使用stringstream时出现]

原文:http://blog.csdn.net/infoworld/article/details/46851371

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!