Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class intbuff
- {
- private:
- std::vector<int> m_Buff;
- public:
- intbuff(int i) { m_Buff.push_back(i); };
- ~intbuff() {};
- intbuff &operator = (int i) { m_Buff.push_back(i); return (*this); }
- intbuff &operator , (int i) { m_Buff.push_back(i); return (*this); }
- };
- int main()
- {
- intbuff x;
- x = 1,2,3,4,5;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement