
16 Dec
2006
16 Dec
'06
5:16 a.m.
Larry Evans wrote:
On 12/15/2006 02:33 AM, Weapon Liu wrote:
Larry Evans wrote:
[snip]
I think a "full fledged class" (a.k.a. FFC) can be done with mpl::fold and CRTP. Each method can be in a separate class, and each field may be
[snip]
I'm really intrigued, Larry :-) So, please.
See boost vault under Template Metaprogramming in tuple_methods_proto.cpp.
BTW. How do we handle the accessibility?
I don't. Everything is public. Is that what you mean?
Sorry for not being clear :) I meant, if we're gonna build a full-fledged class using this kinda tricks, then how do we handle the accessibility of the member functions/data. For example, how do we make a member private? Anyway, I'm gonna take a look at the vault, thanks for the heads up, Larry! :)