Mercurial > hg > svgui
changeset 1358:53fe33b00770
Oops, typeof is not standard
author | Chris Cannam |
---|---|
date | Thu, 11 Oct 2018 18:26:30 +0100 |
parents | b9bfcb8cd5a1 |
children | e7da9c9635ba |
files | widgets/SubdividingMenu.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/widgets/SubdividingMenu.cpp Wed Oct 10 14:50:47 2018 +0100 +++ b/widgets/SubdividingMenu.cpp Thu Oct 11 18:26:30 2018 +0100 @@ -85,7 +85,7 @@ return QString::localeAwareCompare(s1, s2) < 0; }; - set<QString, typeof(comparator)> sortedEntries(comparator); + set<QString, decltype(comparator)> sortedEntries(comparator); sortedEntries.insert(entries.begin(), entries.end()); for (auto j = sortedEntries.begin(); j != sortedEntries.end(); ++j) { @@ -180,7 +180,7 @@ auto comparator = [](QString s1, QString s2) -> bool { return QString::localeAwareCompare(s1, s2) < 0; }; - set<QString, typeof(comparator)> sortedEntries(comparator); + set<QString, decltype(comparator)> sortedEntries(comparator); for (auto i: m_pendingEntries) { sortedEntries.insert(i.first); }