From 022df995aae1383937adf46bdcd3f140e5a400d3 Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 11 Aug 2025 16:21:03 +0100 Subject: [PATCH] Update for newer C++. --- dep/alphanum/alphanum.h | 2 +- dep/alphanum/build.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dep/alphanum/alphanum.h b/dep/alphanum/alphanum.h index d517c45f..16778ccc 100644 --- a/dep/alphanum/alphanum.h +++ b/dep/alphanum/alphanum.h @@ -295,7 +295,7 @@ namespace doj implement "std::ostream operator<< (std::ostream&, const Ty&)". */ template - struct alphanum_less : public std::binary_function + struct alphanum_less { bool operator()(const Ty& left, const Ty& right) const { diff --git a/dep/alphanum/build.py b/dep/alphanum/build.py index e69de29b..774d1e0e 100644 --- a/dep/alphanum/build.py +++ b/dep/alphanum/build.py @@ -0,0 +1,8 @@ +from build.c import clibrary + +clibrary( + name="alphanum", + srcs=[], + hdrs={"dep/alphanum/alphanum.h": "./alphanum.h"}, +) +