const boost::shared_ptr<int> x;
What's const? The smart pointer itself, or the data it's pointing to?
And what about this:
boost::shared_ptr<const int> x;
const boost::shared_ptr<int> x;
What's const? The smart pointer itself, or the data it's pointing to?
And what about this:
boost::shared_ptr<const int> x;