Arnaud Debaene said:
I do use some parts of Loki : the fixed size allocator, the singleton helper
(modified not tu use the double locking pattern), the abstract factory and a
few others. I must admit I haven't found (yet) a real-world usefullness to
typelists and the like. Concerning type-traits, I'd rather use Boost.
I have a piece of cake^Wcode that builds type lists of
function arguments by function signatures. These are
used for checking parameter syntax when parsing config
files.
I also use them in my logging lib. You pass a severity
when you want to log something. You can set up log
targets that log specific severities. Severities are
compile-time thingies (so log statements can be
filtered at compile-time and thus compiled out). If
you need to pass several of them around, typelists are
used.
I also have a derivator that inherites from a list of
types. A quick grep couldn't find any place I use this
right now, but obviously I needed it ones.
And then I have code that manages objects of several
types which have parent-child relationships. They each
have one parent type and any number of child types.
(For each child type, an object can reference any
number of child objects.) Many operations on them are
applied recursive. So there's a lot of TMP stuff that
figures out which child types the object's type has
and for all child types recurses down into the child
objects. An object's type definition contains a list
of child types and that's a typelist, too.
I don't use loki, though.
Schobi
--
(e-mail address removed) is never read
I'm Schobi at suespammers dot org
"The sarcasm is mightier than the sword."
Eric Jarvis