2012-12-07から1日間の記事一覧
さて、C++11 で新しく追加された Inheriting constructors という機能なんですが、これは次のように使うことが出来ます。 struct base{ constexpr base(int value) : value(value){} constexpr base(int value1, int value2) : value(value1 + value2){} int…
さて、C++11 で新しく追加された Inheriting constructors という機能なんですが、これは次のように使うことが出来ます。 struct base{ constexpr base(int value) : value(value){} constexpr base(int value1, int value2) : value(value1 + value2){} int…