std::vectorの初期化子リスト、型がstd::arrayの時とかに初期化子リスト入れ子にできるんかと思ったけど、だめなのか・・・?
-
-
Replying to @chichimotsu
@chichimotsu いけますよ std::vector<std::array<int, 3>> x = {{{1,2,3}}};1 reply 0 retweets 0 likes -
-
Replying to @Linda_pp2 replies 0 retweets 1 like
-
Replying to @fadis_1 reply 0 retweets 0 likes
-
Replying to @chichimotsu
@chichimotsu@fadis_ array のほうは aggregate 初期化なので.2 replies 0 retweets 0 likes -
Replying to @Linda_pp
@Linda_pp@chichimotsu どっちでも初期化出来るはずだけど、古いコンパイラが死んでしまうことがある http://melpon.org/wandbox/permlink/B3TyGXAQug5RCTPp …2 replies 0 retweets 1 like -
-
Replying to @Linda_pp2 replies 0 retweets 1 like
Replying to @chichimotsu
@chichimotsu @Linda_pp うは、ってことはC++11の時点でarrayを{}で初期化するのは標準では認められてないのかーorz
12:05 PM - 7 Jun 2014
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.