T* a;

const  T* b = a;

b에서는 const 멤버함수만 호출가능하도록 이런식으로 쓰고싶은데


boost::shared_ptr<T> ptr1;

boost::shared_ptr<T const> ptr2 = ptr1;

이게 안되더라


안되는 이유는 인터넷 대충 찾아봐서 수긍은 가는데

shared_ptr을 쓰면서 constness를 부여하고싶거든 근데 방법을 모르겠다 해결법 아는형?