2012-09-03 47 views

回答

1

這是編譯器抱怨的const限定符。解決方法是將 聲明爲p作爲指向const b2PolygonShape的指針:

const b2PolygonShape *p = dynamic_cast<const b2PolygonShape*>(s);