Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <list>
- class A
- {
- static std::list<int> field;
- };
- class B
- {
- B()
- {
- A::field.push_front(42);
- }
- static B instance;
- };
- static B B::instance();
- static std::list<int> A::field();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement