<table><tr><td style="">tcberner created this revision.<br />tcberner added reviewers: FreeBSD, mlaurent, dvratil.<br />Herald added a project: KDE PIM.<br />Herald added a subscriber: kde-pim.<br />tcberner 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/D17606">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>FreeBSD-current recently [1] updated clang&co which means <tt style="background: #ebebeb; font-size: 13px;">experimental/optional</tt> is no longer available,<br />
and errors out as <tt style="background: #ebebeb; font-size: 13px;">optional</tt> should be used.</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">check if <optional> is present using __has_include</li>
<li class="remarkup-list-item">simply define stdx = std</li>
</ul>

<p>This also requires a change to Akonadi to remove the <tt style="background: #ebebeb; font-size: 13px;">auto_ptr</tt> variant<br />
of <tt style="background: #ebebeb; font-size: 13px;">setPayload</tt>:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">/usr/local/include/KF5/AkonadiCore/item.h:589:48: error: no template named 'auto_ptr' in namespace 'std'
    template <typename T> void setPayload(std::auto_ptr<T> p);
                                          ~~~~~^
/usr/local/include/KF5/AkonadiCore/item.h:1053:12: error: variable has incomplete type 'void'
void Item::setPayload(std::auto_ptr<T> p)
           ^
/usr/local/include/KF5/AkonadiCore/item.h:1053:28: error: no member named 'auto_ptr' in namespace 'std'
void Item::setPayload(std::auto_ptr<T> p)
                      ~~~~~^
/usr/local/include/KF5/AkonadiCore/item.h:1053:37: error: 'T' does not refer to a value
void Item::setPayload(std::auto_ptr<T> p)
                                    ^
/usr/local/include/KF5/AkonadiCore/item.h:1052:20: note: declared here
template <typename T>
                   ^
/usr/local/include/KF5/AkonadiCore/item.h:1053:40: error: use of undeclared identifier 'p'
void Item::setPayload(std::auto_ptr<T> p)
                                       ^
/usr/local/include/KF5/AkonadiCore/item.h:1053:42: error: expected ';' at end of declaration
void Item::setPayload(std::auto_ptr<T> p)
                                         ^
/usr/local/include/KF5/AkonadiCore/item.h:1054:1: error: expected unqualified-id
{
^
7 errors generated.</pre></div>

<p>[1] <a href="https://svnweb.freebsd.org/base?view=revision&revision=341825" class="remarkup-link" target="_blank" rel="noreferrer">https://svnweb.freebsd.org/base?view=revision&revision=341825</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R206 KMail</div></div></div><br /><div><strong>BRANCH</strong><div><div>Applications/18.12</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17606">https://phabricator.kde.org/D17606</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>agents/unifiedmailboxagent/CMakeLists.txt<br />
agents/unifiedmailboxagent/utils.h</div></div></div><br /><div><strong>To: </strong>tcberner, FreeBSD, mlaurent, dvratil<br /><strong>Cc: </strong>kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>