[Bug 271710] devel/p8-platform: fix build with clang 16

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 May 2023 17:11:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271710

            Bug ID: 271710
           Summary: devel/p8-platform: fix build with clang 16
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: mickael.maillot@gmail.com
                CC: mickael.maillot@gmail.com
             Flags: maintainer-feedback?(mickael.maillot@gmail.com)

Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because devel/p8-platform's Makefile does not explicitly set its C++
standard, this leads to an error:

 
/wrkdirs/usr/ports/devel/p8-platform/work/platform-p8-platform-2.1.0.1/src/util/StringUtils.cpp:456:69:
error: no member named 'ptr_fun' in the global namespace
    str.erase(str.begin(), ::find_if(str.begin(), str.end(),
::not1(::ptr_fun(isspace_c))));
                                                                    ~~^
 
/wrkdirs/usr/ports/devel/p8-platform/work/platform-p8-platform-2.1.0.1/src/util/StringUtils.cpp:469:58:
error: no member named 'ptr_fun' in the global namespace
    str.erase(::find_if(str.rbegin(), str.rend(),
::not1(::ptr_fun(isspace_c))).base(), str.end());
                                                         ~~^

Upstream already fixed this in
<https://github.com/Pulse-Eight/platform/commit/a7cd0d5>, via
<https://github.com/Pulse-Eight/platform/pull/45>, so apply it.

While here, pet portlint.

-- 
You are receiving this mail because:
You are the assignee for the bug.