You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2014/05/09 09:26:50 UTC
[Issue 124860] New: Use constexpr contructors for strings
https://issues.apache.org/ooo/show_bug.cgi?id=124860
Issue ID: 124860
Issue Type: ENHANCEMENT
Summary: Use constexpr contructors for strings
Product: General
Version: 4.1.0
Hardware: All
OS: All
Status: CONFIRMED
Severity: normal
Priority: P4
Component: code
Assignee: issues@openoffice.apache.org
Reporter: hdu@apache.org
C++11's constexpr feature makes it possible to evaluate arguments at compile
time. This can be very useful to replace the many awkward uses of rtl::O*String
constructors with literal c-string arguments.
E.g. the ASCII-ness of the c-string arguments can be checked, its length can be
evaluated, an eventually UTF-8 encoded c-string could be converted directly
into its UTF-16 counterpart, etc.
Even though the constexpr feature is only available for C++11 mode, which is
currently only used in AOO's Mac builds the feature could be used there to
check the strings while other build environment could fall back to e.g.
template-specialization tricks to evaluate the c-string length at compile time.
--
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.