I am new to shared pointer conceot in C++ and hence require some clarification:
For example:
class A
\{
public:
virtual ~A\(\)
\{
\}
int x;
\};
typedef boost::shared_ptr<A> APtr;
APtr getA\(\)
\{
return APtr\(new A\(\)\);
\}
A::A\(\)
\{
x = 0;
\}
When ever I call APtr getA() will every instance of object A will see x as 0?