|
Boost : |
From: Joseph Gauterin (joseph.gauterin_at_[hidden])
Date: 2007-11-27 12:35:14
> I disagree. It's not easy to recognise return type and arguments in your code.
What about this then:
struct local
{
static int a(char c)
{
std::cout << c << '\n';
return 1;
}
static int zz(char c)
{
std::cout << c << c << '\n';
return 2;
}
};
local::a('a')
local::zz('Z')
std::string str = "foo";
std::for_each(str.begin(),str.end(),&local::a);
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk