LoginSignup
4
4

More than 5 years have passed since last update.

C++11 をベースに考えよう

Posted at

C++ 言語は C言語の文法やライブラリを引きずりやすい。
私の場合も、C++言語をなるべくC言語のライブラリを引きずらないように書くようにしてきた。
どうやら、C++言語も C++11以降のスタイルで書くように徹した方がいいらしいことを理解してきたのでメモを示す。

C++11自体が利点が多い。

Effective Modern C++ ―C++11/14プログラムを進化させる42項目
表紙
この本の目次を読んでみれば、C+11へ移行すべき理由がわかるだろう。

OpenCV4ではC++11ベースに

OpenCVもOpenCV3では、C++を標準とするものに変わりきったし、OpenCV4ではC++11をベースとするものになるとのことだ。

OE 4. OpenCV 4

Switch to C++ 11. OpenCV 3.0 is C++ 98 library, whereas many C++ developers switched to C++ 11 or even later standards. We finally need to follow this route. Migration to C++ 11 means breaking “binary compatibility promise”, so this move alone would require OpenCV 4.0.

C++11 とPythonとのよいbindingがある。

pybind11

[python高速化]pybind11によるc++組み込み

pybind11でC++の関数をpythonから使う

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4