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.mascell...@gmail.com>
Postdoc researcher - Université Libre de Bruxelles

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to