|
Boost Users : |
From: Terry G (tjgolubi_at_[hidden])
Date: 2006-10-17 15:57:27
> What if such a variant<types 1...n> represents a communication protocol
> which can contain one of
> enumerated message type instance. In this case the sender can not put
> there a message
> (per-compiler) which should not be there (not allowed). And a receiver can
> be 100% sure that it
> will not receive a message which should not be handled.
Yeah, sounds cool, until I actually tried as you suggested.
Unfortunately, variants can only hold a few types, e.g. 20.
For most interfaces I program, there are far more than 20 messages.
But this concept is still intriguing.
Since variant doesn't cut it for 100 messages, how could one use the
typelist concept in this case?
terry
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