Boost Parameter Question.
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. Please help. Thanks, Surya
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
participants (2)
-
Daniel Wallin
-
Surya Kiran Gullapalli