我有一个阻塞问题,试图弄清楚下面两行代表什么意思。以下是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