Legacy Issue Number: 3797
Source: Triodia Technologies Pty Ltd ( Michi Henning)
Why is it that String_var contains the following?
operator char *();
The mapping never passes strings as a char *. The only parameter
passing signatures are const char * for in params, char * & for inout params,
and String_out for out params.
It seems that this operator is redundant?
The only reason I can think of for it having been added are sloppy signatures
(such as old implementations of strcpy or some such, which sometimes used
char * instead of const char *). However, wouldn't it be better to remove
operator char *() from String_var and force a cast for such broken function
Reported: CPP 1.1 — Thu, 31 Aug 2000 04:00 GMT
Disposition: Resolved — CPP 1.2
Remove operator char*() from class String_var.
Updated: Fri, 6 Mar 2015 21:38 GMT
CPP12 — Another issue with String_var
- Key: CPP12-32
- OMG Task Force: C++ 2002 RTF