|
Boost : |
From: Daniel James (daniel_at_[hidden])
Date: 2005-07-02 14:14:01
Joel de Guzman wrote:
> struct some_baz
> {
> int impl(foo, int x) { return x + 1; }
> int impl(bar, char const* s) { return std::strlen(s); }
> };
With Jonathan's library this would be:
struct some_baz
{
int foo(int x) { return x + 1; }
int bar(char const* s) { return std::strlen(s); }
};
A major advantage in my opinion. I think it also supports overloads.
Daniel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk