[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] problem about the new version 0.9



zhang zhi wei wrote:
> I am evaluationg the new 0.9 and find a strange behaviour.
> 
> build cpp-test
> it reports:
>         [cc] 
> C:\0.9\xmlBlaster\testsuite\src\c++\TestClientProperty.cpp(56) : err
> or C2782: “void 
> org::inforMessaging::test::assertEquals(org::inforMessaging::ut
> il::I_Log &,const std::string &,const T &,const T &,const std::string 
> &)” : template
> parameter “T”is unclear
>       [cc]         maybe“std::string”
>       [cc]         or      “char [4]”
> 
>  I check the TestClientProperty.cpp and find out that is use the 
> testsuite.h file as an
> include file.
>    The testsuite.h contains two assertEquals method . one is a template 
> method and the other is a common method. the compiler seems to be 
> puzzled by these two methods.
> 
>  I use the vc7 and the corba product is  ORBACUS.

Hi Zhang,

i use vc7 and it compiles well, probably
we have a different minor version.

Can you try to add  "template<> "
in front of the std::string specialized function:

  template<> void assertEquals(...

of if this does not help add a variant using char[].

Please report if this helps,

thanks

Marcel
> 
>  thanks  a lot!
> 
> _________________________________________________________________
> 享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com 
> 


-- 
http://www.xmlBlaster.org