|
Boost Users : |
Subject: Re: [Boost-users] Auto dispatch metaprogramming tricks
From: Alexander Lamaison (awl03_at_[hidden])
Date: 2010-05-21 19:34:04
On Fri, 21 May 2010 17:13:43 -0500, Terry Golubiewski wrote:
> Another thing to consider is that using a single type-list with over 100
> message types will significantly (to me) slow compile time and may approach
> compiler limits.
I was worrying about this.
> You can avoid these limits by grouping messages into related groups or by
> using a dynamic dispatcher that registers callbacks at runtime
> initialization.
My 'widgets' will be organised in a class heirarchy. I supposed I can use
a separate list for each subclass. The dispatcher can first try the widget
class's list and then its base class's list and so on. This should keep
the size of any individual list under 20.
Alex
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net