Having a simple class:
class A {
public:
  A() {}
  void set(int value) { value_ = value; }
private:
  int value_;
};
and its global instance:
A a;
- Is it OK to call method - seton a not yet constructed object- a? That can happen when for example- a.set(123)is called from a constructor of another global object in another translation unit.
- Will the value in the object - aset by calling- a.set(123)remain when the non-parametric and empty constructor of- Ais later called for object- a?
 
     
     
     
    