I need some advice please on the best way to achieve a particular outcome... My scenario... I have a Form1 class, which is my main Form with a picture box on it.
I have the following code: void Foo() { static std::vector<int>(3); // Vector object is constructed every function call
With a friend, we had following problem recently. There was a base class: class A { public: A() : foo(10) {}
Imagine the following template class (setter and getter for the member _t omitted): template<class T>
Is there any considerations to determine which is better practice for creating an object with private members?
My previous question about this subject was answered and I got some tests working nice. Map functions of a class