Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Using C++ with the Paho C client library


> To add const to the C API it seems to me I would have to a) be inconsistent
> in its use,  b) make the API harder to read, c) break previous C programs by
> requiring them to add casts d) describe the inconsistent use of const in the
> docs to fend off future re-discussions.
> char** is not cryptic for C!

If the effort was limited to the "char *" case then only a) above
would apply. I may be wrong, but I believe the only cases where "char
**" is an issue is the MQTTAsync_subscribeMany() and
MQTTAsync_unsubscribeMany() functions (and their synchronous



Back to the top