[PROJ] "Unity" builds

Even Rouault even.rouault at spatialys.com
Mon Nov 27 09:02:52 PST 2023


Le 27/11/2023 à 17:43, Javier Jimenez Shaw a écrit :
> Hi Even
>
> Thanks for the work. As you say, having the option is useful. It is 
> true that anonymous namespaces are not anonymous any more,

Depends on how you resolve the collisions, but the concept of anonymous 
namespace still exists

That is, you can't do anymore

a.cpp: namespace { struct foo{}; }
b.cpp: namespace { struct foo{}; }

But you can do:

a.cpp: namespace { struct foo{}; }
b.cpp: namespace { struct bar{}; }

Regarding to code external to PROJ, the anonymity is still preserved


-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the PROJ mailing list