<table><tr><td style="">rakuco created this revision.<br />rakuco added a reviewer: dvratil.<br />Herald added a project: KDE PIM.<br />Herald added a subscriber: kde-pim.<br />rakuco requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17917">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This reverts most of commits <a href="https://phabricator.kde.org/R206:39cbfe725870a94c74a9d344f81212f04aa56d30" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">39cbfe725870a9</a> ("I can haz<br />
std::experimental::optional!") and <a href="https://phabricator.kde.org/R206:b44642b4ec9773abc299dcc0ca8d02797fa6b9a8" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">b44642b4ec</a> ("Rename "exp" namespace to<br />
"stdx" to avoid conflict with exp()"), as well as other commits fixing the<br />
build. Follow-up coding style adjustments (done mostly in commit <a href="https://phabricator.kde.org/R206:c8e59b1a39d354a229150b8a38eb96a4ef781aa3" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">c8e59b1a3</a><br />
"GIT_SILENT: coding style") have not been reverted though.</p>
<p>std::optional support is only officially supported in C++17 or later, but we<br />
were still requiring only C++14 to build unifiedmailboxagent. Switching to<br />
C++17 in the Applications/18.12 branch requires a change to akonadi that is<br />
only available in its master branch (<a href="https://phabricator.kde.org/R165:ceeb4f3a72b62944a4614e582b7ca4cd551a6aa6" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">ceeb4f3a</a>, "Disable std::auto_ptr checks<br />
in Item in C++17"), and in any case C++17 support is fairly recent<br />
everywhere so we can just wait a bit longer before depending on it.</p>
<p>The discussion in <a href="https://phabricator.kde.org/D17606" class="remarkup-link" target="_blank" rel="noreferrer">https://phabricator.kde.org/D17606</a> is also relevant.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Built all code and unit tests, the same tests fail with and without this patch.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R206 KMail</div></div></div><br /><div><strong>BRANCH</strong><div><div>revert-std-optional (branched from Applications/18.12)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17917">https://phabricator.kde.org/D17917</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>agents/unifiedmailboxagent/autotests/unifiedmailboxmanagertest.cpp<br />
agents/unifiedmailboxagent/unifiedmailbox.cpp<br />
agents/unifiedmailboxagent/unifiedmailbox.h<br />
agents/unifiedmailboxagent/unifiedmailboxagent.cpp<br />
agents/unifiedmailboxagent/unifiedmailboxmanager.cpp<br />
agents/unifiedmailboxagent/utils.h</div></div></div><br /><div><strong>To: </strong>rakuco, dvratil<br /><strong>Cc: </strong>kde-pim, FreeBSD, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>