
2 Jun
2006
2 Jun
'06
5:24 p.m.
"Beman Dawes" <bdawes@acm.org> wrote in message news:e5pl7g$gd5$1@sea.gmane.org...
..
my_message<endian::big> msg1; my_message<endian::little> msg2; my_message<endian::native> msg3;
Interesting.
etc. In my opinion a similar argument applies to exposing the alignment as a template parameter.
Yeah. Those are separate classes now. Probably not too hard to wrap in a generative class template that takes endianness and alignment as template arguments and then just instantiates one of the current classes.
Anyone like to contribute such an animal?
Nevermind. Such a wrapper is trivial. I'll include it myself. --Beman