[問題] Effective C++ 3e item35

看板C_and_CPP (C/C++)作者 (Protector)時間14年前 (2012/01/05 10:53), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
問題(Question): 裡頭有一段...std::tr1::bind(&GameLevel::helath, currentLevel, _1)... 這裡的"_1"應該指的是GameCharacter的member function: int healthValue() const { return healthFunc(*this); } 裡頭的*this,而非書本上所說的"use currentLevel as the GameLevel object when calling GameLevel::health for ebg2."?感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.116.152.38

01/05 11:07, , 1F
文章代碼(AID): #1F1H318e (C_and_CPP)
文章代碼(AID): #1F1H318e (C_and_CPP)