soloBitCheck parameter problem

Angus Comber angus at iteloffice.com
Fri Dec 29 09:57:50 UTC 2006


Hello

I have compiled ASN.1 spec for CSTA II on Windows using SNACC 1.6.

The generated cpp functions use a soloBitCheck function which seems to get
created like this:

if ( NOT_NULL(voiceUnit) && (! voiceUnit->soloBitCheck(VoiceUnitFilter::)) )
// *** offending line
{
   l = voiceUnit->BEncContent (b);
   l += BEncDefLen (b, l);
   l += BEncTag1 (b, CNTX, PRIM, 5);
   totalLen += l;
}

This is an example in   AsnLen MonitorFilter::BEncContent (AsnBuf &b) const

The line with soloBitCheck does not compile.  Get errors:
csta2less.cpp(3165) : error C2589: ')' : illegal token on right side of '::'
csta2less.cpp(3165) : error C2143: syntax error : missing ')' before '::'
csta2less.cpp(3165) : error C2660: 'soloBitCheck' : function does not take 0
parameters
csta2less.cpp(3165) : error C2059: syntax error : ')'

Something is missing?

How do I edit the code?  Should it be sizeof(VoiceUnitFilter) ?

How can I fix?

Angus







More information about the dev mailing list