From 3d8c519f4ac4173c19b313a7d1cf9866512d8872 Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Sat, 13 May 2017 07:55:23 +0200 Subject: [PATCH] Replace deprecated/removed C++98 function adapter by inline typedefs. Signed-off-by: Daniela Engert --- include/boost/msm/back/bind_helpers.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/msm/back/bind_helpers.hpp b/include/boost/msm/back/bind_helpers.hpp index a537ec3..fc224b2 100644 --- a/include/boost/msm/back/bind_helpers.hpp +++ b/include/boost/msm/back/bind_helpers.hpp @@ -18,8 +18,11 @@ namespace boost { namespace msm { namespace back // helper to replace std::plus as the lack of implicit conversion makes it not usable in one of our bind template struct plus2 - : public std::binary_function<_Ty, _Tz, _Ty> { + typedef _Ty first_argument_type; + typedef _Tz second_argument_type; + typedef _Ty result_type; + // functor for operator+ _Ty operator()( _Ty _Left, _Tz _Right) const {