I have such problem: I have class Foo
, and if have some objects of this class,
Foo a();
I need to put this object to 2 different vectors:
std::vector<Foo> vA, vB;
and if a
changes in vA
it should be changed in vB
, vectors vA
and vB
can be different, but they can have same objects. I know that it is possible to do with Boost, but I can't use Boost.