|
Boost : |
From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-11-27 12:16:11
Giovanni Piero Deretta <gpderetta <at> gmail.com> writes:
> > int BOOST_LOCAL_FUNCTION(char c)
[ skiped because gmane believes I'm overquoting ]
> struct unnamed { static void _ (char c) {
> std::cout << c << '\n';
> return 1;
> }};
>
> (&unnamed::_)('a');
>
> It is ugly, but I find the BOOST_LOCAL_FUNCTION_DECL macros even
> uglier.
I disagree. It's not easy to recognise return type and arguments in your code.
-- Alexander
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk