yohhoyの日記

技術的メモをしていきたい日記

2012-12-05から1日間の記事一覧

copy elision抑止オプション

gcc(g++)において、C++言語仕様で許容されているcopy elision*1を明示的に抑止するオプション。 -fno-elide-constructors The C++ standard allows an implementation to omit creating a temporary that is only used to initialize another object of the …