Wireshark mailing list archives

Re: Idle Thought - Compiling with C++


From: Jaap Keuter <jaap.keuter () xs4all nl>
Date: Tue, 12 Feb 2013 23:00:02 +0100

On 02/12/2013 10:53 PM, Gerald Combs wrote:
On 2/12/13 1:17 PM, Jaap Keuter wrote:
On 02/11/2013 06:36 PM, Evan Huus wrote:
Moving just to a C++ compiler shouldn't cause problems for anybody.
While C++ isn't technically a superset of C, it is trivial for C
programmers to avoid the few areas of incompatibility (as far as I
know there are simply a few more reserved words like 'new' to avoid in
variable names).


Add this the the reading list: http://david.tribble.com/text/cdiffs.htm
May not be all applicable (C89 and such) but show what a can-o-worms it can be.
That's probably where that 7k number comes from.

When starting on the Qt code I found the Google C++ Style Guide to be
helpful: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
Anyone outside of Google probably shouldn't adhere to it strictly but
it provides clean, concise descriptions on why they do and don't do
various things.

We should steal the format for README.developer, BTW.

Interesting read, although...

"We do not use C++ exceptions."

This is somewhat of a bummer.

Thanks,
Jaap

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: