I'd like to reduce some visual noise in the code and hide shared_ptr behind a typedef like this:
typedef boost::shared_ptr<SomeLongClass> SomeLongClassPtr;
So this:
void foo(const boost::shared_ptr<SomeLongClass>& a,
boost::shared_ptr<SomeLongClass>& b);
becomes this:
void foo(const SomeLongClassPtr& a, SomeLongClassPtr& b);
On the other hand I'm worried that I'm reducing the explicitness of the code.
Which is a better style?