[Aptitude-devel] Bug#948341: Bug#948338: [libapt-pkg-dev] apt-pkg headers pollute preprocessor namespace
Giovanni Mascellani
gio at debian.org
Tue Jan 7 15:31:29 GMT 2020
Hi,
Il 07/01/20 16:18, Julian Andres Klode ha scritto:
> I spoke too soon, we can turn the define into
>
> static struct {
> inline GlobalError* operator ->() { return _GetErrorObj(); }
> } _error APT_UNUSED;
Thanks, I was about to suggest something like that.
This still pollutes the global namespace, as I believe basically
everything in libapt-pkg-dev does, but at least not the preprocessor
namespace, therefore it does not break libraries that do proper namespacing.
Giovanni.
--
Giovanni Mascellani <g.mascellani at gmail.com>
Postdoc researcher - Université Libre de Bruxelles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/aptitude-devel/attachments/20200107/c0e681d9/attachment.sig>
More information about the Aptitude-devel
mailing list