work around C++17 issue in AWPMD package

This commit is contained in:
Axel Kohlmeyer
2023-08-03 21:56:04 -04:00
parent 7d84eb86f7
commit 0446bdfc00

View File

@ -23,7 +23,7 @@ class WavePacket;
///\en Template for v=der operation in \ref Wavepacket::int2phys_der()
template<class Type>
struct eq_second : public binary_function <Type, Type, Type> {
struct eq_second {
Type operator()(const Type& /* _Left */, const Type& _Right) const{
return _Right;
}
@ -31,7 +31,7 @@ struct eq_second : public binary_function <Type, Type, Type> {
///\en Template for v=-der operation in \ref Wavepacket::int2phys_der()
template<class Type>
struct eq_minus_second : public binary_function <Type, Type, Type> {
struct eq_minus_second {
Type operator()(const Type& /* _Left */, const Type& _Right) const{
return -_Right;
}