From 0446bdfc00ef910762654212cb755fc11cc0aedd Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 3 Aug 2023 21:56:04 -0400 Subject: [PATCH] work around C++17 issue in AWPMD package --- lib/awpmd/ivutils/include/wavepacket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awpmd/ivutils/include/wavepacket.h b/lib/awpmd/ivutils/include/wavepacket.h index 5a787f0809..24e849c880 100644 --- a/lib/awpmd/ivutils/include/wavepacket.h +++ b/lib/awpmd/ivutils/include/wavepacket.h @@ -23,7 +23,7 @@ class WavePacket; ///\en Template for v=der operation in \ref Wavepacket::int2phys_der() template -struct eq_second : public binary_function { +struct eq_second { Type operator()(const Type& /* _Left */, const Type& _Right) const{ return _Right; } @@ -31,7 +31,7 @@ struct eq_second : public binary_function { ///\en Template for v=-der operation in \ref Wavepacket::int2phys_der() template -struct eq_minus_second : public binary_function { +struct eq_minus_second { Type operator()(const Type& /* _Left */, const Type& _Right) const{ return -_Right; }