Hello:
On Tue, Oct 08, 2013 at 09:20:58AM +0200, Suvayu Ali wrote:
>
> I have a strange problem. When I try to use std::to_string() I get the
> following error:
>
> $ g++ -o test_to_string test_to_string.cc
> test_to_string.cc: In function ‘int main()’:
> test_to_string.cc:7:28: error: ‘to_string’ is not a member of ‘std’
> std::cout realise C++11 was not the default. Any ideas why?
Because (gcc says) c++11 support in gcc is still experimental, see:
http://gcc.gnu.org/projects/cxx0x.html
Regards,
Mamoru