I was reading about the new "tuple" type coming in c++0x, and I decided to try it. I saw that if you give a compiler flag -std=c++0x it will work. So I did it, and then #include <tuple> works and everything was good. Then I decided to try the default member initialization.

class Point
{
	public:
		int a = 4;
};

but it doesn't work. Does anyone know where I can find a list of which features are available using -std=c++0x and which are not yet available? I am using gcc.

Thanks,
Dave

Recommended Answers

All 2 Replies

The list you are after in in http://gcc.gnu.org/gcc-4.3/cxx0x_status.html

I am assuming that you are using 4.3.

However, I am sligthly mystified , I though that you can only write what you have if you are using static or const. If you have the C++0x reference could you/someone post it please. Many thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.