[Libreoffice] compile-time trickery to detect misuse of SAL_N_ELEMENTS, RTL_CONSTASCII_USTRINGPARAM, etc.

Thorsten Behrens 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...

Cheers,

-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101113/98877075/attachment.pgp>


More information about the LibreOffice mailing list