Package: libgf-complete1
Version: 1.0.2-2+b1
Severity: wishlist
--- Please enter the report below this line. ---
Hi.
I am using the gf-complete library from C++ code and I wrapped the
header include in an extern "C" {...}.
However, I get an error, when trying to compile:
/usr/include/gf_general.h:51:51: error: expected ‘,’ or ‘...’ before
‘xor’ token
int bytes, int xor);
^~~
The reason is the "xor" parameter name, which is a keyword in C++.
I know I can work around this by giving g++ the -fno-operator-names
switch, but it would be nice, if the file was usable without that.
I would suggest to rename the parameter in the header or remove the name
completely.
Since the change would be minuscule and would not break compatibility
and this is not really a bug for a C-library, I am filing this as a
wishlist item and hope for someone to have mercy with C++ users out there.
Regards
Andre
--- System information. ---
Architecture: Kernel: Linux 4.11.0-2-amd64
Debian Release: buster/sid
500 unstable-debug debug.mirrors.debian.org 500 unstable
ftp.de.debian.org
--- Package information. ---
Depends (Version) | Installed
======================-+-===========
libc6 (>= 2.14) | 2.24-12
Package's Recommends field is empty.
Package's Suggests field is empty.