Hi Mike,
On 5/16/2012 11:56 AM, McKnerney, Michael D (US SSA) wrote:
> Hi Adam,
>
> Thanks for your response.
>
> I missed the TAO-specific ptr() for var's.
>
> (I just need to add ptr() calls in allot of places)
>
> I wonder why operator T *& () is not supported on TAO_FixedSeq_Var_T ?
>
> Btw- I see that the v1.2 mapping spec says (4.11.1) "Conversion of a null T_var to a T*& is also allowed so as to be compatible with earlier versions of this specification." But I guess that does not mean an "implicit conversion" shall be required ?
>
My reading of the spec is that when it talks about "conversion" it
really is requiring a C++ user-defined conversion operator.
I agree that something is wrong with TAO's implementation in this area.
All sequences (even bounded) are considered variable-length for the sake
of parameter passing and "*_var" rules. This is described in the 2nd
pgh of 4.11. It's also evident from the fact that Table 4.5 in the
Bolton book has just one row for "sequence."
Please create a Bugzilla entry with the details. It may help to also
attach a small test that doesn't compile unless TAO is compliant. Then
you can decide if you'd like to create a patch yourself or fund one of
the commercial support companies (such as my employer) to work on it.