Home » U++ Library support » U++ Core » NEW: generic Toupel grouper
Re: NEW: generic Toupel grouper [message #29284 is a reply to message #29264] |
Wed, 13 October 2010 22:35   |
|
luzr wrote on Wed, 13 October 2010 18:48 | Too verbose, we need something more sexy...
|
There is a way... a sexy way What would you say to this:template <typename A, typename B>
struct Tuple2 : PossiblyMoveable<Tuple2<A,B>,A,B>{
...
} Is that sexy enough? The idea is that PossiblyMoveable<T,A,B,...> evaluates to Moveable<T> if A,B,... are all moveable and to EmptyClass otherwise.
I can't give you the code right now, but I have it implemented (it needs only some cosmetic changes) and I will post it here tonight or tomorrow. Word of warning in advance: It is heavy "template metaprogramming" (Just found that term on wiki, but it fits )
kohait00 wrote on Wed, 13 October 2010 22:03 | in any case, the user needs to take care of that all by himself. it's just to make the process to do so a bit easier.
|
As you could already guess from above, what you say is not true It can be done automatically, by abusing the compiler/language just a bit 
Honza
[Updated on: Wed, 13 October 2010 22:39] Report message to a moderator
|
|
|
 |
|
NEW: generic Toupel grouper
By: kohait00 on Thu, 12 August 2010 16:03
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Thu, 12 August 2010 16:07
|
 |
|
Re: NEW: generic Toupel grouper
By: koldo on Thu, 12 August 2010 16:14
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Thu, 12 August 2010 16:58
|
 |
|
Re: NEW: generic Toupel grouper
By: koldo on Thu, 12 August 2010 17:03
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Thu, 12 August 2010 17:04
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Thu, 12 August 2010 17:27
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Thu, 12 August 2010 20:58
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Fri, 13 August 2010 10:53
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Fri, 13 August 2010 10:58
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Fri, 13 August 2010 11:16
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Fri, 13 August 2010 14:59
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Sat, 14 August 2010 11:53
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Sun, 15 August 2010 09:16
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 17 August 2010 22:22
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 17 August 2010 23:21
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Thu, 19 August 2010 08:30
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Mon, 30 August 2010 20:57
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Mon, 30 August 2010 22:23
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 31 August 2010 08:31
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 31 August 2010 08:44
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 31 August 2010 09:44
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Tue, 31 August 2010 13:36
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 31 August 2010 13:51
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 31 August 2010 14:04
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 31 August 2010 14:18
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Tue, 31 August 2010 15:23
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Tue, 31 August 2010 15:21
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 31 August 2010 15:31
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Tue, 31 August 2010 15:38
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 31 August 2010 15:44
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Mon, 06 September 2010 11:01
|
 |
|
Re: NEW: generic Toupel grouper
By: mdelfede on Tue, 12 October 2010 19:41
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 12 October 2010 22:00
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Wed, 13 October 2010 09:07
|
 |
|
Re: NEW: generic Toupel grouper
By: mdelfede on Wed, 13 October 2010 09:32
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Wed, 13 October 2010 18:47
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Wed, 13 October 2010 09:41
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Wed, 13 October 2010 11:50
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Wed, 13 October 2010 12:24
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Wed, 13 October 2010 18:48
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Wed, 13 October 2010 22:03
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Fri, 15 October 2010 13:46
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Fri, 15 October 2010 15:05
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Fri, 15 October 2010 17:21
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Fri, 15 October 2010 19:50
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Mon, 18 October 2010 10:00
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Mon, 18 October 2010 12:12
|
 |
|
Re: NEW: generic Toupel grouper
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Tue, 19 October 2010 15:21
|
 |
|
Re: NEW: generic Toupel grouper
By: kohait00 on Tue, 07 December 2010 15:59
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Tue, 07 December 2010 21:44
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Tue, 31 August 2010 13:29
|
 |
|
Re: NEW: generic Toupel grouper
By: mirek on Tue, 31 August 2010 13:34
|
Goto Forum:
Current Time: Sun Apr 27 23:49:47 CEST 2025
Total time taken to generate the page: 0.03393 seconds
|