[boost] Re: [boost.variant] It is possible to make a variant LessThanComparable

2003-09-01 Thread Alexander Nasonov
David Abrahams wrote: Dirk Schreib [EMAIL PROTECTED] writes: I would like a variant to be LessThanComparable if all BoundedTypes are LessThanComparable. In this example typedef boost::variantT1, T2, ..., TN V; V v1 = T1( x ); V v2 = T2( y ); V v3 = T1( z ); v1 v2 should

[boost] Re: [boost.variant] It is possible to make a variant LessThanComparable

2003-08-31 Thread Dirk Schreib
David Abrahams [EMAIL PROTECTED] wrote Eric Friedman [EMAIL PROTECTED] writes: std::set my_variant, boost::variant_lessmy_variant I had the same thought myself, though I'd be inclined to spend a little time searching for a better name than less, since it doesn't really mean that. Maybe

[boost] Re: [boost.variant] It is possible to make a variant LessThanComparable

2003-08-31 Thread Dirk Schreib
Hello Eric, Eric Friedman [EMAIL PROTECTED] wrote Dirk Schreib wrote: [...] In this example typedef boost::variantT1, T2, ..., TN V; V v1 = T1( x ); V v2 = T2( y ); V v3 = T1( z ); v1 v2 should always be true. And v1 v3 should be the same as T1( x ) T1( z ). For