August 19, 2006 at 6:13 pm · Filed under C++
Bookmark on del.icio.us
This is a C++ library I created to be able to wrap types while specifying - in compile-time - what operations, if any, are to be preserved, i.e., what homomophisms should be injected into the wrapping type. One can view it as a very flexible type alias system.
I issued this library as an informal proposal [...]
July 24, 2006 at 1:30 am · Filed under C++
Bookmark on del.icio.us
Would you like to generate a hierarchy of types on the fly using C++? Well, at least on-the-compilation-fly…
You could always use Andrei’s magnificent Loki library, or you could use my proposal, gen_hierarchy.
In short, I allow for two distinct types of hierarchies:
Spine-like, with the given types protruding as maximal elements on that spine.
A “simple” chain.
Let us [...]