
27 Feb
2013
27 Feb
'13
3:10 a.m.
You can edit your prefer type generalize oder typedef boost::mpl::vector<int,boost::rational<int>,float,double,long double,std::complex<double>,std::complex<long double> >::type ordered_number_types; => typedef boost::mpl::vector<bool,char,int,boost::rational<int> >::type ordered_number_types;
1. Is double guaranteed to be a superset of int? 2. Do you lose the information, which type is contained (int/double)?
Regards, Kris
I wrote such extension