Boost logo

Boost :

From: Ivan Shvedunov (ivan4_at_[hidden])
Date: 2002-11-03 13:14:29


  Hi,
  I've found a bug in boost/lambda/function_adaptors.hpp in boost-1.29.0. Namely,
sig template is missing in function_adaptor<Result (Object::*)(Arg1, Arg2, Arg3)>
specialization. Here's the patch:

--- boost/lambda/detail/function_adaptors.hpp.bak Sun Nov 3 20:46:34 2002
+++ boost/lambda/detail/function_adaptors.hpp Sun Nov 3 20:55:49 2002
@@ -345,6 +345,7 @@
 template <class Object, class Arg1, class Arg2, class Arg3, class Result>
 struct function_adaptor<Result (Object::*)(Arg1, Arg2, Arg3)> {

+ template<class T> struct sig { typedef Result type; };
   template <class RET, class A1, class A2, class A3>
   static Result apply( Result (Object::*func)(Arg1, Arg2, Arg3), Object* o, A1& a1, A2& a2, A3& a3) {
     return (o->*func)(a1, a2, a3);


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk