Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-07-14 22:05:52


Dave Steffen <dgsteffen_at_[hidden]> writes:

> I presume he's proposing something that would, in either a .h or
> .cpp file, look approximately like this:
>
>
> class MyClassDefinition {....};
> void My_Function_Declaration;
>
> BOOST_PARAMETER_KEYWORD( tag, name) // #1
>
> inline void My_Fn_Definition ()
> {
> ... many interesting statements ...
> }

Precisely speaking, see
http://wwww.boost-consulting.com/boost/libs/parameter/test/basics.hpp
http://wwww.boost-consulting.com/boost/boost/parameter/keyword.hpp

> I agree that macros are code writers, no arguments there.
>
> I also agree that macros are not part of the C++ syntax model at all.
> No question.

I guess it depends whether you consider the preprocessor to be part of
C++ :-)

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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