[C++-sig] How to get items from a tuple (original) (raw)
Stefan Seefeld seefeld at sympatico.ca
Fri Jan 16 13:13:25 CET 2009
- Previous message: [C++-sig] How to get items from a tuple
- Next message: [C++-sig] How to get items from a tuple
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ricardo Abreu wrote:
Thank you, but I had tried that and it doesn't seem to work... look: http://codepad.org/kA61P8r0
What am I doing wrong?
In the sake of understanding the code a little better you may write it a bit less compact. Then you will realize that the item extraction you were asking about is in fact working fine. However, as it returns an object, not an int, you still need to extract the C++ type properly. Just using C casts doesn't work. (Read the docs.)
Regards, Stefan
--
...ich hab' noch einen Koffer in Berlin...
- Previous message: [C++-sig] How to get items from a tuple
- Next message: [C++-sig] How to get items from a tuple
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]