Message78795
Concerning the SetArgv( int, char**), that one will have to be changed
to a SetArgv( int, char const* const*), i.e. applying the const on both
levels. Otherwise, there is no implicit conversion between the two.
The reason is a bit complicated: if the function stored a
pointer-to-const in the array, it would become a pointer-to-nonconst
outside. Only if modification of the array is forbidden, changing the
element type to pointer-to-const is allowed.
Otherwise, I'm +1 on this kind of changes, because it makes immediately
obvious which functions modify a passed buffer and which don't. |
|
Date |
User |
Action |
Args |
2009-01-02 14:03:39 | eckhardt | set | recipients:
+ eckhardt, jhylton, belopolsky, christian.heimes, sebastinas |
2009-01-02 14:03:38 | eckhardt | set | messageid: <1230905018.89.0.89434507226.issue1699259@psf.upfronthosting.co.za> |
2009-01-02 14:03:38 | eckhardt | link | issue1699259 messages |
2009-01-02 14:03:37 | eckhardt | create | |
|