Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- using namespace std;
- struct Page{
- int a;
- int b;
- };
- int main()
- {
- vector<Page> v;
- Page p = {1, 0};
- v.push_back(p);
- // compile error:
- // Page p = Page{1, 0};
- // v.push_back(p);
- // compile error:
- // v.push_back(Page{1, 0});
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement