Eric Lemanisser <eric.lemaniss...@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.


Regards,
-Phil

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to