[Libreoffice] C++0x and LibreOffice

Caolán McNamara caolanm at redhat.com
Wed Nov 24 12:21:27 PST 2010


LibreOffice should now be buildable with a C++0x compiler. Well at least
g++ -std=c++0x on x86_64 Linux anyway.

Which may then allow the possibility to do some potentially interesting
things with string literals and templates with anonymous classes etc.
e.g. see sal/workben/measure_oustrings.cxx and the SAL_N_ELEMENTS
template I mentioned earlier which could at compile-time detect misuse
of SAL_N_ELEMENTS and RTL_CONSTASCII_USTRINGPARAM. 

C.



More information about the LibreOffice mailing list