textproc/ctpp2: do not use one of the obsolete C++ features

Deriving from the `std::binary_function' base class template
was never really needed (it's just some seldom used typedefs)
and it had been deprecated since C++11 to be finally removed
in C++17.
This commit is contained in:
Alexey Dokuchaev 2024-10-18 14:30:32 +00:00
parent e25d62fc9b
commit 465dc9cfc6
2 changed files with 13 additions and 1 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= ctpp2 PORTNAME= ctpp2
PORTVERSION= 2.8.3 PORTVERSION= 2.8.3
PORTREVISION= 9 PORTREVISION= 10
CATEGORIES= textproc devel CATEGORIES= textproc devel
MASTER_SITES= http://ctpp.havoc.ru/download/ MASTER_SITES= http://ctpp.havoc.ru/download/

View file

@ -0,0 +1,12 @@
--- include/CTPP2SyscallFactory.hpp.orig 2012-08-02 07:22:44 UTC
+++ include/CTPP2SyscallFactory.hpp
@@ -104,8 +104,7 @@ class CTPP2DECL SyscallFactory (private)
@struct HandlerRefsSort SyscallFactory.hpp <SyscallFactory.hpp>
@brief Case-insensitive sorting functor
*/
- struct HandlerRefsSort:
- public STLW::binary_function<STLW::string, STLW::string, bool>
+ struct HandlerRefsSort
{
/**
@brief comparison operator