|
Boost : |
From: Mark Rodgers (mark.rodgers_at_[hidden])
Date: 2000-07-26 14:39:21
From: "Kevlin Henney" <kevlin_at_[hidden]>
> Hmm, I'm still not convinced: meta_ seemed to capture it for me, but
> that may just be me :-> However, ct_ -- and indeed other abbrs -- really
> don't work for me. I would much prefer something spelled out, eg
> compile_ or static_ (OK, OK, that one's more than a little overloaded).
I'm with you; meta_ is fine by me and I think ct_ is terrible.
However I don't like prefixes in general, and feel that the correct way
to spell "meta_" would ideally be "meta::". Of course that doesn't help
the problem that "if" is a reserved word. I think the best thing to do
here is accept that we can't use "if", and just choose another word such
as "when" or "select".
I quite like "when":
namespace boost {
namespace metaprogramming {
template <bool b, typename T, typename F> struct when {...};
}
}
Mark
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk