Boost logo

Boost Users :

Subject: [Boost-users] variant with shrink
From: Niitsuma Hirotaka (hirotaka.niitsuma_at_[hidden])
Date: 2013-02-27 04:53:51


boost::variant should be

variant<int,int>
=> int

variant<int,double>
=> double

variant<int,boost::rational<int> >
=> boost::rational<int>

variant<int,double,std::string>
=> variant<double,std::string>

I wrote such extension

https://github.com/niitsuma/variant_shrink


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