I'm working on a project using Eclipse for C++. Currently I need to use structures such as tuples and hashes. When looking for it on the cplusplus site i came with these:
http://www.cplusplus.com/reference/tuple/tuple/?kw=tuple
The point is, following the example code on the site when trying to compile I get an error, which says, for example, that tuple is not defined. Looking more closely, the c++ sites says these features work on revision 11 and newer. Maybe this can be my problem since I have no idea how to check my version.
How do I get to work with the last revision? I'd really help me a lot not having to implement these kind of structures from scratch.
EDIT: i did g++ --version on the console and got:
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Im using Ubuntu 12.04 with Eclipse C/C++ Kepler SR2
EDIT with answer:
Tu use the c11 standard, gcc 4.7 is needed. Refer to this link: http://www.swiftsoftwaregroup.com/upgrade-gcc-4-7-ubuntu-12-04/
to install it.