{"url":"https://osyo-manga.hatenadiary.org/entry/20121207/1354855294","blog_title":"C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","published":"2012-12-07 13:41:34","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20121207%2F1354855294\" title=\"\u540d\u524d\u304c\u5206\u304b\u3089\u306a\u3044\u57fa\u5e95\u30af\u30e9\u30b9\u3067\u3082 Inheriting constructors \u3057\u305f\u3044 - C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/osyo-manga/","version":"1.0","title":"\u540d\u524d\u304c\u5206\u304b\u3089\u306a\u3044\u57fa\u5e95\u30af\u30e9\u30b9\u3067\u3082 Inheriting constructors \u3057\u305f\u3044","provider_url":"https://hatena.blog","author_name":"osyo-manga","blog_url":"https://osyo-manga.hatenadiary.org/","categories":["C++"],"provider_name":"Hatena Blog","width":"100%","description":"\u3055\u3066\u3001C++11 \u3067\u65b0\u3057\u304f\u8ffd\u52a0\u3055\u308c\u305f Inheriting constructors \u3068\u3044\u3046\u6a5f\u80fd\u306a\u3093\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u6b21\u306e\u3088\u3046\u306b\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002 struct base{ constexpr base(int value) : value(value){} constexpr base(int value1, int value2) : value(value1 + value2){} int value; }; struct X : base{ // \u57fa\u5e95\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u6d3e\u751f\u30af\u30e9\u30b9\u3067\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u5b9a\u7fa9 using base::base; }; // \u57fa\u5e95\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u4f7f\u7528\u2026","type":"rich","height":"190"}