From: Joel R. <jo...@gm...> - 2009-02-26 13:27:34
|
Larry, What about struct BeginAlert {} struct BeginCmtry {} etc.? Wouldn't this take care of tagging the variants just as well? Thanks, Joel On Feb 26, 2009, at 12:04 PM, Larry Evans wrote: > I don't know about any performance penalty; however, I think you'll > encounter a problem if one of the types in the variant is duplicated. ... > One easy solution is to tag each variant. IOW, instead of: > > variant<int,int> > > use: > > variant<tag_pair<0,int>,tag_pari<1,int> > --- http://tinyco.de Mac Trading Apps |