This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: std::rotate returns void for c++11
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Keith Erickson <kerickso at pppl dot gov>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 2 Oct 2013 20:21:26 +0100
- Subject: Re: std::rotate returns void for c++11
- Authentication-results: sourceware.org; auth=none
- References: <CA+PNwRNm=gsi9kvRc9wQpVaXWjG86zm_koh9hKLeyHZXWovQQA at mail dot gmail dot com>
On 2 October 2013 20:10, Keith Erickson wrote:
> http://en.cppreference.com/w/cpp/algorithm/rotate
>
> That says that for C++11, rotate should return an iterator. However,
> I am seeing it still return void, on gcc 4.8.1. Am I using g++ wrong?
No, that change simply hasn't been implemented yet. Please file a bug
report at http://gcc.gnu.org/bugzilla/ to ensure it gets dealt with.