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

Hey Ian,

No problem. Of these, the only one that I would continue to push for "correctness" (over convenience) is the const specifier for pointer parameters (item #2), especially for char* parameters. It is common to use string literals, and the C++ compiler will prevent you from doing that. Unless you lie to it.


On 05/16/2013 01:12 PM, Ian Craggs wrote:

Hi Frank,

I'm not averse to any of these proposed changes.  But before making them, I would need to spend time making sure that they worked and didn't cause any backward incompatibility with applications, on as many platforms as I could.  One of the key goals in writing the code was portability, which is one reason why the use of C features is conservative.

All of these suggestions can be fixed in a C++ specific interface without potentially compromising the portability of the C code which is why I suggested starting with that, because it's less of a risk.


Back to the top