Issue 17067: Assignment Rule for Container Types (dds-psm-cxx-ftf) Source: PrismTech (Dr. Angelo Corsaro, PhD., angelo.corsaro(at)prismtech.com) Nature: Enhancement Severity: Minor Summary: The ctors declared by the macros OMG_DDS_REF_TYPE_BASE and OMG_DDS_REF_TYPE_BASE_T for initializing proxy classes with delegates should be declared protected as opposed to public. This will ensure (1) that client code is not able to invoke these methods and (2) that the C++ compiler won't try to apply some of the parametrized ctors to incomplete arg-list provided by the user. Resolution --------------- Change ctors declaration from "public" to "protected" Resolution: Revised Text: Actions taken: January 26, 2012: received issue Discussion: End of Annotations:===== m: Angelo Corsaro Subject: Fwd: Access scope for ctors on OMG_DDS_REF_TYPE_BASE / OMG_DDS_REF_TYPE_BASE_T To: Juergen Boldt Begin forwarded message: From: Angelo Corsaro Subject: Access scope for ctors on OMG_DDS_REF_TYPE_BASE / OMG_DDS_REF_TYPE_BASE_T Date: 25 January, 2012 12:55:47 GMT+01:00 To: issues@omg.org, dds-psm-cxx-ftf@omg.org Cc: Juergen Boldt Name: Angelo Corsaro Employer: PrismTech eMail: angelo@icorsaro.net Specification: ISO C++ DDS PSM Version: Beta 1 Title: Assignment Rule for Container Types Nature: Robustness Severity: Minor Description ---------------- The ctors declared by the macros OMG_DDS_REF_TYPE_BASE and OMG_DDS_REF_TYPE_BASE_T for initializing proxy classes with delegates should be declared protected as opposed to public. This will ensure (1) that client code is not able to invoke these methods and (2) that the C++ compiler won't try to apply some of the parametrized ctors to incomplete arg-list provided by the user. Resolution --------------- Change ctors declaration from "public" to "protected" -- Angelo Corsaro, PhD Chief Technology Officer PrismTech 4 rue Angiboust | 91460 Marcoussis | France T +33 1 69 01 53 54 | M +33 6 42 30 75 65 ------------------------------------------------------------------------------------------------------------------ http://icorsaro.net | http://twitter.com/acorsaro | http://slideshare.net/angelo.corsaro ------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------ http://icorsaro.net | http://twitter.com/acorsaro | http://slideshare.net/angelo.corsaro ------------------------------------------------------------------------------------------------------------------