【C++】template 統合スレ -- Part6
■ このスレッドは過去ログ倉庫に格納されています
0168デフォルトの名無しさん
NGNGオブジェクトのconst修飾が参照先のconst修飾に対応した
クラスってないでしょうか
Boost流だとこんな↓感じ?
template<typename T>
class my_shared_ptr : protected boost::shared_ptr<T>
{
public:
const T * operator->() const { return __super::operator->(); }
T * operator->() { return __super::operator->(); }
// other functions implementation...
};
おねがいします
■ このスレッドは過去ログ倉庫に格納されています