OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-c-cpp message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [sca-c-cpp] NEW ISSUE: Requirements on cpp:parameter/@type too lax


Target: C++ C&I Specification CD03

 

Description:

The requirements on the cpp:parameter/@type attribute (Section D.6) are too lax, and allow specifying any valid C++ type.  There isn’t enough information to support conversion to/from any arbitrary type.

 

Proposal:

 

Restrict the allowed types to those explicitly identified in the spec:

 

·         type : Name (0..1) – specifies the type of the parameter or struct member or return type.  The @type attribute of a <cpp:parameter/> element MUST be a C++ type specified in section 10.3.1.

 

Rationale:

 

  • Since std::string is a valid type from section 10.3.1, the type of this attribute cannot be NCName.  Switched to Name.
  • Since the default mapping is taken from this table, it seems to be a reasonable subset to choose the mapping from.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]