2013-12-28

C++03とC++11の違い: 汎用ユーティリティライブラリー

今日も小粒な、C++03とC++11の変更点

変更: 最小限のガベージコレクションサポート

C++11にガベージコレクションは入らないが、GCを入れるための、変なビット演算でポインターの内部表現を戻したりしない、リーチ可能なポインターというものを規定している。これにより、C++03とC++11の規格に準拠したそれぞれのプログラムの挙動が変わる可能性が、規格上存在する。

変更: 標準ライブラリの関数オブジェクトは、std::unary_function, std::binary_functionから派生していない。

もう、C++11ではメタプログラミングが発達したので、このような基本クラスは必要がない。

次回はstringライブラリの違い

3 comments:

  1. Just ɑ smiling visitor һere to share the love (:, btw outstanding design.

    ReplyDelete
  2. At this moment I am going to do my breakfast, once having my breakfast coming again to read further news.

    ReplyDelete
  3. nice article very useful your post Thank you so much

    ReplyDelete

You can use some HTML elements, such as <b>, <i>, <a>, also, some characters need to be entity referenced such as <, > and & Your comment may need to be confirmed by blog author. Your comment will be published under GFDL 1.3 or later license with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.