ダブルポインタを使用する必要があるコードがいくつかあります。具体的には、なぜ私がどこで言うことができない&this
のかについて興味があります...
class Obj {
public:
void bar();
};
void foo(Obj **foopa)
{
// do etc with your foopa. maybe lose the foopa altogether. its nasty imo.
}
void Obj::bar()
{
// call foo(Obj **)
foo(&this); // Compiler Err: Address extension must be an lvalue or a function designator.
}
左辺値?機能指定子?返信が大好きです。