LoginSignup
2
1

More than 5 years have passed since last update.

c++/stl > ABI問題の回避 > STLと例外を回避する

Last updated at Posted at 2015-08-23

引用: C++のためのAPIデザイン by マーティン・レディ
12.1 プラグインによる拡張

12.1.3 C++でのプラグイン実装
...
- STLと例外を回避する
std::stringやstd::vectorなど、STLクラスの異なる実装間ではABI互換性がない可能性がある。そこで、こうしたコンテナは、コアAPIとプラグインAPI間の関数呼び出しでは避けること。同様に、例外もコンパイラ間のABIが安定しないため、プラグインAPIでは回避したほうがよい。

2
1
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
2
1