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 << "Five: " << std::to_string(5) << std::endl;

Okay, found my problem.  I have to explicitly choose C++11.  I did not
realise C++11 was not the default.  Any ideas why?

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to