屁多是什么病的前兆| 小孩包皮挂什么科| 狮子女喜欢什么样的男生| 女人胃寒吃什么好得快| 体检什么时候去最好| wonderland是什么意思| 雄字五行属什么| 叛逆期是什么意思| 艾滋病潜伏期有什么症状| 男士吃什么壮阳最厉害| 为什么光吃不拉大便| 肝不好挂什么科室| 包头古代叫什么| 对偶句是什么意思| 什么是直流电| 流量mb是什么意思| 三焦指的是什么器官| 爻辞是什么意思| 阿玛尼手表属于什么档次| 真性情是什么意思| 蜻蜓点水的目的是什么| 染什么颜色| 喝什么缓解痛经最有效| 血脂血糖高吃什么食物好| 送男人什么礼物最难忘| 苔菜是什么菜图片| 什么原因导致脑出血| 只欠东风的上一句是什么| 这是什么英文| 什么叫做罹患疾病| 6月17号是什么星座| 肿物是什么意思| 沆瀣一气是什么意思| 凤凰单丛茶属于什么茶| cm医学上是什么意思| 胆的作用及功能是什么| 长沙为什么叫星城| 橄榄油什么牌子最好| 痘痘里面挤出来的白色东西是什么| 女生适合做什么工作| 心衰的症状是什么| 打蛇打七寸是什么意思| 大学是什么学历| 滑档是什么意思| 鸡蛋价格为什么这么低| 明月照沟渠是什么意思| 奇葩是什么意思| 什么的风筝| ABB的词语有什么| 乳腺癌的症状是什么| 家财万贯是什么生肖| 真菌菌丝阳性什么意思| 幽灵是什么意思| 催乳素是什么意思| 尿路感染喝什么药| 5.6是什么星座| 男人交生育保险有什么用| 为什么润月| 大脖子病有什么症状| 什么样的人可以通灵| 职业年金是什么意思| 眼底筛查是检查什么| 一张纸可以做什么| 立冬是什么时候| 高粱是什么颜色| 气血不足是什么症状| 来大姨妈能喝什么饮料| 尿血是什么症状| 排尿无力是什么原因| 松子吃了有什么好处和坏处| 手指关节肿大是什么原因| 属虎的生什么属相的宝宝好| 在编是什么意思| 勾心斗角是什么意思| 4.7号是什么星座| 查血型挂什么科| 十二年义务教育什么时候实行| 时间单位是什么| 高油酸是什么意思| 二月花是什么花| 什么样的夕阳| 高丽参和红参有什么区别| 为什么会得甲状腺| 玉皇大帝叫什么名字| 腋下副乳有什么危害吗| 1月7号是什么星座| 属鸡的适合干什么行业最赚钱| 海参什么时间吃最好| 头部mra是什么检查| 势力是什么意思| 九一八事变是什么意思| 睾丸痒用什么药膏最好| 醒酒喝什么| 十岁小孩尿床是什么原因| 透骨草治什么病最有效| 什么是单反相机| 草莓什么季节种植| 肌红蛋白偏低说明什么| 吗啡是什么| 366红包代表什么意思| 怀孕初期吃什么蔬菜好| 炖牛肉放什么调料最好| 一步两步三步四步望着天是什么歌| 晚上十一点半是什么时辰| 什么是植物神经紊乱| c02是什么意思| 从从容容的意思是什么| 甲状腺结节有什么症状| 做完核磁共振后需要注意什么| 热毛巾敷眼睛有什么好处| 什么解酒最快| 骨头受伤了吃什么恢复的快| 亭亭净植的亭亭是什么意思| 癌胚抗原是什么| 4月18号是什么星座| 牙疼吃什么药止痛快| 高血压吃什么好| 养生是什么意思| 乌鸦叫预示什么| 吃什么补肝最好| 真菌阳性是什么意思| 腋臭和狐臭有什么区别| 大便蛋花状是什么原因| 七月十五有什么忌讳| 弯的直的什么意思| 腹肌不对称是什么原因| 张牙舞爪是什么意思| 什么药治肝最好最安全| 西梅不能和什么一起吃| 骨蒸潮热 是什么意思| 黄芪什么人不能吃| 后援会是什么意思| 脚趾头抽筋是什么原因引起的| semir是什么牌子| 晚上吃什么最健康| 山根是什么| 液化是什么意思| 八月17号是什么星座的| kimi是什么意思| 做宫腔镜检查需要提前做什么准备| 68年属猴是什么命| 87年属什么| 相识是什么意思| 为什么会无缘无故长痣| 替班是什么意思| 医托是什么意思| 男人阴囊潮湿吃什么药| 石膏的主要成分是什么| 护士长是什么级别| 权倾朝野是什么意思| 上腹胀是什么原因| society是什么意思| ser是什么氨基酸| 孩子急性肠胃炎吃什么药| 救赎什么意思| 皮肤黑的人穿什么颜色的衣服好看| 苓是什么意思| 北斗是什么| 什么是直男| eee是什么牌子的鞋| 老实忠厚是什么生肖| 缺钠有什么症状和危害| 颈椎病吃什么药最好| 提炼是什么意思| 什么都能吃| 心口疼是什么原因| 热症是什么意思| 什么紫| 锦衣玉食什么意思| 鹅蛋炒香菜治什么病| 鸽子不能和什么一起吃| 梦见骑自行车是什么意思| 鸠是什么鸟| 小孩个子矮小吃什么促进生长发育| 没有什么会永垂不朽| 鳞状上皮是什么意思| 干扰素是什么药| 上眼皮肿了是什么原因| 6月15日是什么星座| 比熊吃什么牌子的狗粮好| acne是什么意思| 挂绿荔枝为什么那么贵| 献血有什么坏处| 酸是什么| ins是什么软件| 吃鱼油有什么好处| 梦见大蜈蚣是什么预兆| 前胸后背长痘痘用什么药| 逍遥丸配什么治失眠| 梦见自己掉了两颗牙齿是什么意思| 抛砖引玉什么意思| 心理咨询挂什么科| 橄榄油的好处和坏处是什么| 隐情是什么意思| 01什么意思| 乏力没精神容易疲劳是什么原因| 水瓶男喜欢什么样的女生| 什么样的升旗仪式| 全套什么意思| 讨喜是什么意思| 暗财是什么意思| 胎儿永久性右脐静脉是什么意思| 梅毒挂什么科| 大同有什么好玩的地方| 正正得什么| 陈赫为什么离婚| 城市的夜晚霓虹灯璀璨是什么歌| 哀怨是什么意思| 翡翠和和田玉有什么区别| 尿酸查什么项目| hpv68阳性是什么意思| 冰箱为什么不制冷了| 奥林匹克精神是什么| 骨质增生挂什么科| 为什么遗精| 自然生化流产是什么意思| 甲状腺结节什么原因引起的| 纯阴八字为什么要保密| 颈椎病用什么药| 阴虚火旺吃什么药| 穿裙子搭配什么鞋子| 胡子发黄是什么原因| 牙疼吃什么止疼药见效快| 血尿是什么原因引起的男性| 中国的特工组织叫什么| 乌龟都吃什么| 9527是什么意思| 空调睡眠是什么意思| 阴唇是什么颜色| 血府逐瘀丸治什么病| 发蜡是什么| 贪恋是什么意思| 常州有什么特产| 扁桃体发炎引起的发烧吃什么药| 发蜡和发泥有什么区别| 罗汉是什么意思| 致密是什么意思| 增强抵抗力免疫力吃什么| 鲅鱼是什么鱼| 唇釉是什么| 晕倒是什么原因引起的| 营养不良吃什么| 什么病不能喝酒| 日值上朔是什么意思| 为难的难是什么意思| 破冰是什么意思| 心有灵犀什么意思| pvd是什么材料| 手指腱鞘炎是什么原因造成的| 瑜伽是什么意思| 糖尿病人晚餐吃什么最好| 发烧头痛吃什么药| 毒龙是什么意思| 火龙果什么时候成熟| 画蛇添足的寓意是什么| 鱼漂什么牌子的好| 子宫下垂有什么症状| 做梦和别人吵架意味着什么| 你的名字讲的什么故事| 举足轻重是什么生肖| 9月10日什么星座| 馐什么意思| 上火喝什么| 腰椎间盘突出吃什么药好| 百度
home | C++ | FAQ | technical FAQ | publications | WG21 papers | TC++PL | Tour++ | Programming | D&E | bio | interviews | videos | quotes | applications | guidelines | compilers

陕西斜七孔微喷带安装铺设 榆林效果好微喷带

Standard language/library issues related to Bjarne Stroustrup: The C++ Programming Language (3rd edition), Addison-Wesley, 1997. ISBN0-201-88954-4. 百度 8分50秒,周琦又在防守端送出大帽,同时,周琦还在防守端多次保护好毒蛇队的后场篮板。

Modified November 4, 2003

There are examples in my book that are in error according to the standard but that I haven't changed because there is a defect report on the issue.

Issues marked by * have been resolved so that the standard agrees with my book. The issue marked ** was resolved in favor of the draft standard.


*pg 61: I write
	ostream_iterator< string> oo(os);
I got caught by using an old version of STL where ostream_iterator was defined like this:
	template < class T>
	class ostream_iterator : public output_iterator {
	protected:
		ostream* stream;
		char* string;
		// ...
	};
The standards conforming version (pg 560) looks like this:
	template < class T, class Ch, class Tr = char_traits< Ch> >
	class ostream_iterator : public iterator< output_iterator_tag,void,void,void,void> {
	public:
		typedef Ch char_type;
		typedef Tr traits_type;
		typedef basic_ostream< Ch,Tr> ostream_type;
		// ...
	};
Consequently, I find that my code using istream_iterators and ostream_iterators is broken according to the standard if not for most current implementations. For example:
	ostream_iterator< string> oo(os);	// error: too few template arguments
It should be:
	ostream_iterator< string,char> oo(os);
The problem appears to be caused by an accidentally incomplete conversion of ostream_iterator to use templatized streams. I think the proper definition ought to be:
	template < class T, class Ch = char, class Tr = char_traits< Ch> >
	class ostream_iterator : public iterator< output_iterator_tag,void,void,void,void> {
	public:
		typedef Ch char_type;
		typedef Tr traits_type;
		typedef basic_ostream< Ch,Tr> ostream_type;
		// ...
	};
I have raised the issue in the standards committee and hope to see it resolved soon.
pg 42 I use
	char vc2[200];

	copy(&vc1[0],&vc1[200],&vc2[200]);
The issue is whether taking the address of one-past-the-last element of an array is conforming C and C++. I could make the example clearly conforming by a simple rewrite:
	copy(vc1,vc1+200,vc2+200);
However, I don't want to introduce addition to pointers at this point of the book. It is a surprise to most experienced C and C++ programmers that &vc2[200] isn't completely equivalent to vc2+200. In fact, it was a surprise to the C committee also and I expect it to be fixed in the upcoming revision of the standard. (resolved for C9x - bs 10/13/98). (this means that the example was ok in K&R C, in ARM C++, an error in C89 and ISO C++, and ok in C9x - a thorny issue).
pg 279: The standard appears to prohibit making a private function a friend. I consider such a restriction a mistake. Someone has already listed this as a defect, but there is not yet a resolution from the committee.
*pg 287: In the draft standard, for_each() is required not to modify its input sequence. This is of course necessary when for_each() is invoked for an input_iterator. However, I think that the requirement is unnecessary for most sequences and that useful code is unnecessarily deemed nonstandard by this requirement. Given the obvious and almost universal definition of for_each() the requirement is neither obvious nor easy to avoid breaking:
	template Op for_each(In first, In last, Op f)
	{
		while (first != last) f(*first++);
		return f;
	}
I consider for_each() overconstrained and use it in ways that goes beyond what is guaranteed by the draft standard. I hope/expect that the requirement will be relaxed.
*pg 340: Due to an unfortunate oversight, the standard simply bans default arguments for template parameters for a function template. Voted to be corrected in the next standard.
pg 378: The draft standard doesn't support the mapping of exceptions as I describe it in 14.6.3. It specifies mapping to std::bad_exception for exceptions thrown explicitly within an unexpected() function. This makes std::bad_exception an ordinary and rather pointless exception. The current wording does not agree with the intent of the proposer of the mechanism (Dmitry Lenkov of HP) and what he thought was voted in. I have raised the issue in the standards committee.
*pg 519: In the standard, there are no versions of binders that apply to non-const elements of a sequence. Thus, the example of for_each() using bind2nd() on page 521 is non-conforming. Suitable versions of the binders needs to be added.
*pg 521: There are no versions of member function adapters for const member function in the draft standard. A proposal to add those versions - as they have been added to working implementations of the library - has been made, and I hope to see the issue resolved soon. Given the full set of member function adapters, the examples on page 521 and other such reasonable uses of mem_fun() works.
*pg 522: It is not possible to have a reference to a reference so the calls to bind2nd() appears to be nonconforming. The committee has resolved this issue by deeming T&& equivalent to T&.
pg 633: I say "Manipulators taking istream and ostream are presented in and < ostream> respectively, and also in < iostream>. The rest of the standard manipulators are presented in < iomanip>." However, the standard disagrees and provides no manipulators in < iostream>, thus making this usage non-conforming:
	#include < iostream>
	int main()
	{
		std::cout << "Hello world" << std::endl;
		return 0;
	}
Personally, I prefer the simpler (and valid)
	#include < iostream>
	int main()
	{
		std::cout << "Hello world\n";
	}
but I expect that there are enough programs depending on endl for the committee to seriously consider changing the standard to match the implementations.
**pg 641: It has been claimed that the standard is unclear about the meaning of a string initializer for an ostring stream. For example:
ostringstream ost("Hello, ");
ost << "world!";
According to my reading of the standard, this should output "Hello, world!". The claim is that ignoring the initializer and producing the output "world " is what was intended (eventhough the standards text doesn't explicitly say so).

Resolution: That example prints "world! " If you want, "Hello, world!" say

ostringstream ost("Hello, ",ios_base::ate); // open to write "at end"
ost << "world!";
Note that this makes a string stream behave for a string analogously to the way a file stream behaves for a file.
pg 663: The subscript operator for a const valarray returns a T rather than a const T&. This implies that we cannot obtain a pointer to an element of a const val_array. I believe this to be an unintended limitation.

home | C++ | FAQ | technical FAQ | publications | WG21 papers | TC++PL | Tour++ | Programming | D&E | bio | interviews | videos | quotes | applications | guidelines | compilers
稽留流产是什么原因 猪冲什么生肖 大腿内侧什么经络 李健是清华什么专业 道德绑架是什么意思
为什么鼻毛会变白 脑梗要注意什么 乙肝有什么危害 誉之曰的之是什么意思 肘关节发黑是什么原因
胃肠化是什么意思 什么是pin 现在领结婚证需要什么 来月经小腹痛是什么原因 遗精什么意思
吃中药能吃什么水果 锲而不舍是什么生肖 临界是什么意思 为什么海螺里有大海的声音 万马奔腾是什么生肖
眼黄瘤什么方法治疗最好520myf.com 脚肿挂什么科室hcv9jop1ns6r.cn 狗取什么名字好hlguo.com 有蛇进屋预兆着什么fenrenren.com 大红袍属于什么茶类hcv9jop0ns7r.cn
气的什么hcv7jop4ns6r.cn 小孩咳嗽流鼻涕吃什么药效果好hcv9jop5ns0r.cn 日皮是什么意思hcv8jop7ns9r.cn 喝茶为什么睡不着觉hcv8jop2ns3r.cn 情趣内衣是什么意思gangsutong.com
梦见自己生了个女儿是什么预兆dajiketang.com 维生素d是什么东西helloaicloud.com 水奶和奶粉什么区别0297y7.com 静脉曲张用什么药hcv8jop8ns5r.cn 怎么判断自己什么脸型hcv9jop3ns5r.cn
双生是什么意思hcv8jop6ns4r.cn 十二月七号是什么星座hcv8jop1ns1r.cn 有出息是什么意思hcv9jop2ns7r.cn 大生化挂什么科hcv9jop1ns4r.cn 尿道感染吃什么药好hcv8jop5ns2r.cn
百度