Hello!
If I want to create a smart pointer to struct I do that:
struct A
{
int value;
};
typedef boost::shared_ptr<A> A_Ptr;
So, I can write the following:
A_Ptr pA0(new A);
pA0->value = 123;
But, If I have a template struct like that:
template<typename T>
struct B
{
T value;
};
And I want to write the following:
B_Ptr<char> pB0(new B<char>);
pB0->value = 'w';
So, How should I declare the B_Ptr ?