[PROJ] "Unity" builds

Javier Jimenez Shaw j1 at jimenezshaw.com
Mon Nov 27 10:10:10 PST 2023


Right.
Maybe I should say "unique" or "private" (... that is a reserved keyword),
because it may collide with another cpp when joined by unity, but they are
not exposed outside.

On Mon, 27 Nov 2023 at 18:02, Even Rouault <even.rouault at spatialys.com>
wrote:

>
> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20231127/48da3031/attachment.htm>


More information about the PROJ mailing list