Rokiのチラ裏

学生による学習のログ

2016-11-11から1日間の記事一覧

implicit constructorか否か

C++

このようなコードが貼り付けられていた。 struct X{constexpr X(){}}; class CC{ struct Y{ constexpr Y(){}; }; struct Z{ /*constexpr Z(){}*/ }; static constexpr X x={}; static constexpr Y y={}; static constexpr Z z={}; }; int main(){} これは、s…