mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Enable C++17
This commit is contained in:
@@ -32,7 +32,7 @@ include(version.pri)
|
|||||||
|
|
||||||
CONFIG += qt
|
CONFIG += qt
|
||||||
CONFIG += warn_on
|
CONFIG += warn_on
|
||||||
CONFIG += c++14
|
CONFIG += c++17
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# Detect 32 or 64 bit
|
# Detect 32 or 64 bit
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ namespace XSwiftBus
|
|||||||
static const CMessage::string ellipsis = u8"\u2026";
|
static const CMessage::string ellipsis = u8"\u2026";
|
||||||
const unsigned lineLength = m_messages.maxLineLength() - 1;
|
const unsigned lineLength = m_messages.maxLineLength() - 1;
|
||||||
|
|
||||||
using U8It = Utf8Iterator<typename CMessage::string::const_iterator>;
|
using U8It = Utf8Iterator<typename std::string::const_iterator>;
|
||||||
U8It begin(text.begin(), text.end());
|
U8It begin(text.begin(), text.end());
|
||||||
auto characters = std::distance(begin, U8It(text.end(), text.end()));
|
auto characters = std::distance(begin, U8It(text.end(), text.end()));
|
||||||
std::vector<CMessage::string> wrappedLines;
|
std::vector<CMessage::string> wrappedLines;
|
||||||
|
|||||||
Reference in New Issue
Block a user