[Libreoffice] compile-time trickery to detect misuse of SAL_N_ELEMENTS, RTL_CONSTASCII_USTRINGPARAM, etc.
thb at documentfoundation.org
Fri Nov 12 15:19:46 PST 2010
Caolan McNamara wrote:
> So, with a bit more poking around I discovered the template trick to
> force a compile time error if the argument is not an array, and to
> calculate at compile time the length of the array.
Clever hack! :)
Along those lines, any reason not to use boost in sal / udk? I've a
nice thing or two shelved that was blocked on that OOo policy...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the LibreOffice