Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Parameters: are static member functions possible somehow?
From: Daniel Wallin (daniel_at_[hidden])
Date: 2009-01-28 14:50:07


Joost Kraaijeveld wrote:
> Hi,
>
> I can generate global and ordinary member functions with
> Boost.Parameters. But I would like to create static member functions. IS
> that somehow possible? I have looked at the macros of the library but I
> did not get any wiser :-(.
>
> So is it possible, and if so, how?

Yes, the macros support it by simply putting "static" before the
function name. From the tests:

  BOOST_PARAMETER_MEMBER_FUNCTION((int), static f_static, tag,
  ...

It seems like this was omitted from the docs.

-- 
Daniel Wallin
BoostPro Computing
http://www.boostpro.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