[Development] Fornux C++ Superset

Phil Bouchard philippeb8 at gmail.com
Wed Apr 25 16:23:08 CEST 2018

Eric Lemanisser <eric.lemanissier at gmail.com> wrote:
> What about
> void foo(int (&array)[3])
> and
> template<int N>
> void foo(int (&array)[N]) ?
> Both of these functions make sure the caller and the callee use the same
> array size at compile time. I don't see anybody giving away this kind of
> security, especially fro functions called across translation units. Does
> your system store the length of the array next to the pointer at runtime ?
> What is the cost of this ?

I think it’ll be fine but let me confirm tonight. Thanks.


More information about the Development mailing list