Skip to content

Instantly share code, notes, and snippets.

@kobayashi-poppin-games
Created February 12, 2014 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kobayashi-poppin-games/8952311 to your computer and use it in GitHub Desktop.
Save kobayashi-poppin-games/8952311 to your computer and use it in GitHub Desktop.
統一初期化構文は使えない
// std::vectorのように書きたいところだが
std::vector<Sprite*> sprites = {sprite1, sprite2, sprite3};
// こうはいかない
cocos2d::Vector<Sprite*> sprites = {sprite, sprite2, sprite3};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment