albertz/openlierox — comment on commit 35f892407da4b97caab856ae39e59ad06e8f318c
File: src/client/CFont.cpp line 90
By albertz:

According to the C++ standard, this is ignored and it is just
syntactic sugar for a pointer.

On Sun, Dec 25, 2011 at 10:05 PM, karelp

wrote:
> Wouldn't this be better:
> template
> static bool isSepColor(Uint32 sepColors[N], Uint32 c) { ... }
>
> The compiler will then automatically deduce N and it will be by a tiny bit safer as well (you must explicitly pass wrong number to break it).
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/albertz/openlierox/commit/35f892407da4b97caab856ae39e59ad06e8f318c#commitcomment-820249