X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fimpl%2Fmembind.hh;h=b2394237f8d3efc551aa7fa015d817f78c5f3033;hb=83df9651fac5af034774ff9314ee18eeb8a5ec2a;hp=ef1850023a47122b8f6f6829381d3584ca9f11ac;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Utils/impl/membind.hh b/Utils/impl/membind.hh index ef18500..b239423 100644 --- a/Utils/impl/membind.hh +++ b/Utils/impl/membind.hh @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -20,7 +20,7 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // -// NEVER INCLUDE DIRECTLY !! INCLUDE satcom/membind.hh +// NEVER INCLUDE DIRECTLY !! INCLUDE senf/membind.hh #if !BOOST_PP_IS_ITERATING @@ -42,9 +42,9 @@ boost::function membind(R (T::* fn)(),scOBTYPE ob) #define scARG(z,n,d) BOOST_PP_CAT(d,n) #define scPARAMS(d) BOOST_PP_ENUM_SHIFTED(BOOST_PP_ITERATION(),scARG,d) - + template < typename R, typename T, scPARAMS(typename A) > -boost::function +boost::function membind(R (T::* fn)( scPARAMS(A) ), scOBTYPE ob) { return boost::bind(fn, ob, scPARAMS(_) ); @@ -52,7 +52,7 @@ membind(R (T::* fn)( scPARAMS(A) ), scOBTYPE ob) #undef scPARAMS #undef scARG - + // } #endif // done @@ -60,4 +60,10 @@ membind(R (T::* fn)( scPARAMS(A) ), scOBTYPE ob) // Local Variables: // mode: c++ +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: