[ https://issues.apache.org/jira/browse/LOGCXX-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14952699#comment-14952699 ]
Thorsten Schöning commented on LOGCXX-400: ------------------------------------------ Just a note for now: "static_cast<logchar>(0x3195)" looks like a lot of overhead to write, maybe we shoudl consider introducing some macro like LOG4CXX_STR which handles the cast? Something like LOG4CXX_CHR or *_LOG_CHR or ... > C++11 does not allow char literals with highest bit set unless cast > ------------------------------------------------------------------- > > Key: LOGCXX-400 > URL: https://issues.apache.org/jira/browse/LOGCXX-400 > Project: Log4cxx > Issue Type: Bug > Affects Versions: 0.10.0 > Environment: XCode 4.5, clang set to C++11 > Reporter: Andrew Lazarus > Original Estimate: 1h > Remaining Estimate: 1h > > C++11 has tighter rules for widening of literals. In particular, 0xFF (for > example) is an unsigned short unless cast otherwise. -- This message was sent by Atlassian JIRA (v6.3.4#6332)