https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280382
Bug ID: 280382
Summary: '#include <algorithm>' fails when -std=c99 and
-pedantic-errors options are specified (found on the
multimedia/librist port)
Product: Base System
Version: 14.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: [email protected]
Reporter: [email protected]
When '#include <algorithm>' is compiled with '-pedantic -pedantic-errors
-std=c++98' it fails:
In file included from x.cpp:4:
In file included from /usr/include/c++/v1/algorithm:1787:
In file included from /usr/include/c++/v1/__algorithm/adjacent_find.h:14:
/usr/include/c++/v1/__algorithm/iterator_operations.h:105:9: error: too many
arguments provided to function-like macro invocation
105 | "It looks like your iterator's `iterator_traits<It>::reference`
does not match the return type of "
| ^
etc etc
Based on https://en.cppreference.com/w/cpp/header/algorithm <algorithm> existed
in the c++98 standard, so such include should compile fine.
--
You are receiving this mail because:
You are the assignee for the bug.