[C++11无限制的unions] 在标准 C++ 中,并非任意的类型都能做为 union 的成员.比方说,带有 non-trivial 构造函数的类型就不能是 union 的成员.在新的标准里,移除了所有对 union 的使用限制,除了其成员仍然不能是引用类型. 这一改变使得 union 更强大,更有用,也易于使用. 参考:http://zh.wikipedia.org/wiki/C++0x#.E6.A8.A1.E6.9D.BF.E7.9A.84.E5.88.A5.E5.90.8D…
/*Navicat MySQL Data Transfer Source Server : localhostSource Server Version : 50136Source Host : localhost:3306Source Database : ben500_info Target Server Type : MYSQLTarget Server Version : 50136File Encoding : 65001 Date: 2013-07-11 10:07:33*/ SET…
Specifies that a virtual function cannot be overridden in a derived class or that a class cannot be inherited from. Syntax The identifier final, if used, appears immediately after the declarator in the syntax of a member function declaration or a mem…