これが私のクラスでの私の演算子の定義です:
T& operator*(){
return this->element_;
}
そのように使用すると、次のように呼ばれます。
std::cout << n->operator*() << std::endl;
私が試してみると、そうではありません:
std::cout << *n << std::endl;
何か案が ?
前もって感謝します、
ジェレミー
これが私のクラスでの私の演算子の定義です:
T& operator*(){
return this->element_;
}
そのように使用すると、次のように呼ばれます。
std::cout << n->operator*() << std::endl;
私が試してみると、そうではありません:
std::cout << *n << std::endl;
何か案が ?
前もって感謝します、
ジェレミー