$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] variant with shrink
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2013-02-28 11:46:31
On Wed, Feb 27, 2013 at 5:10 AM, Niitsuma Hirotaka <
hirotaka.niitsuma_at_[hidden]> wrote:
> 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;
>
>
>
float tends not to hold all ints. double usually does, although I'm not
sure it is guaranteed.
Tony