Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- {
- protected:
- virtual void updateValue(ID id)
- {
- m_values[i] = new AVALUE(i);
- }
- private:
- map<ID, AVALUE*> m_values;
- }
- class B : public A
- {
- protected:
- virtual void doSomething(ARGS args)
- {
- m_values[args.id] = args.value;
- updateValue(args.id);
- }
- private:
- map<ID, BVALUE*> m_values;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement