Boost logo

Boost Users :

From: Daniel Wallin (daniel_at_[hidden])
Date: 2007-08-29 09:51:05


Surya Kiran Gullapalli wrote:
> Hello all,
> I'm a newbie to boost parameter library. I had no problem in using
> BOOST_PARAMETER_MEMBER_FUNCTION as long as the function is non static.
>
> what is the macro to use for static member function.
>
> I gave
> BOOST_PARAMTER_MEMBER_FUNCTION (
> (static void), ...
> )
>
> But i was getting warning messages with MSVC 8.0 compiler, with boost-1.34.1
>
> warning C4042: 'unnamed-parameter': has bad storage class.
>
> I do not know whether these are harmless or not.

The macros accept "static" in front of the function name:

  BOOST_PARAMTER_MEMBER_FUNCTION(
    (void), static foo, ...
  )

HTH,

-- 
Daniel Wallin
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net