我有一個阻塞問題,試圖弄清楚下面兩行代表什麼意思。以下是gSOAP的聲明的方法聲明,我很困惑,我應該如何定義參數的finstionC++中的* const * a是什麼意思
SOAP_FMAC3 void SOAP_FMAC4 **soap_serialize_PointerTomss__MobileUserType**(struct soap *soap, mss__MobileUserType *const*a)
所以我嘗試以下,但無法弄清楚什麼是錯誤在這裏。
mss__MobileUserType const *mobile_user_type = setupMobileUsertype();
**soap_serialize_PointerTomss__MobileUserType**(soap , &mobile_user_type);
我在做什麼錯在這裏。
不要在你的源代碼中增加額外的星號來強調,而是在你的問題中使用註釋或解釋。就目前而言,我無法分辨這個'const'旁邊是否最初有星號。 – 2013-05-01 16:29:51
一個指向const的指針的指針? const_cast <>來拯救! :) – 2013-05-01 16:30:05
@MichaelDorgan:'const_cast <>'從來沒有拯救過任何東西。 – 2013-05-01 16:30:57