
27 Nov
2007
27 Nov
'07
5:16 p.m.
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