In May 2010, the GCC steering committee decided to allow use of a C++ compiler to compile GCC. The compiler was intended to be written in C plus a subset of features from C++. In particular, this was decided so that GCC's developers could use the destructors and generics features of C++

从GCC的观点来看,C++最有价值的部分,是析构函数和泛型。

析构函数是最直接的资源管理方法,也是最直接的scope工具;基于析构函数可以做出很多有价值的设计。

泛型是大型编程语言的必需品;虽然泛型的使用非常复杂而且易出错,但是目前来看泛型仍然是实现容器的最佳办法。业务开发要避开泛型,但是基础类库却又需要泛型。

Bionic lacks many features found in full libc implementations, such as wide character and C++ exception handling support.


从bionic的观点来看,C++的宽字节和异常都是毒药。

宽字节并不能解决unicode的问题,但是带来了一堆麻烦,去掉最好。C++的异常,带来的问题比它解决的问题还多,去掉最好。

最新文章

  1. hihoCoder 1383 : The Book List(书目表)
  2. Truncate table、Delete与Drop table的区别
  3. hdu2546 饭卡    01背包
  4. codeforces 192e
  5. bash shell 合并文件
  6. C#的历史及IDE总结
  7. Ubuntu配置Android编译环境
  8. ural 1698. Square Country 5(记忆化搜索)
  9. 使SSH不用输入密码
  10. zookeeper伪分布式集群环境搭建
  11. Linux-day1-pdf课件
  12. Allowed memory size of 134217728 bytes exhausted解决办法(php内存耗尽报错)【简记】
  13. Dynamics365 WebAPI ADFS token 获取
  14. [转载]EF或LINQ 查询时使用IN并且根据列表自定义排序方法
  15. iptable四表五链
  16. 【随笔】借鉴 & KPI式设计
  17. 【一】jquery之subline编辑器插件安装
  18. Lazarus下面的javascript绑定另外一个版本bug修正
  19. nginx深入剖析
  20. MySQL实例crash的案例分析

热门文章

  1. 继续对dubbo源代码进行maven builder
  2. <第一周>降维
  3. day38 20-Spring与Junit整合
  4. 2018-12-27-WPF-从文件创建图片的方法
  5. 【时光回溯】【JZOJ3566】【GDKOI2014】阶乘
  6. hdu4267 线段树
  7. NodeJS基础之Express路由和中间件
  8. python 面向对象编程语言
  9. idea建立maven聚合项目 标签: mavenidea 2017-01-08 15:33 2477人阅读 评论(30)
  10. SDUT-2138_判断可达性