std::rotate return value in gcc 4.9

algorithm, c++11, gcc, gcc4.9

Solution

- It looks like `std::rotate` in gcc doesn't conform to the C++11 standard (i.e., it's not implemented yet).

- I searched GCC Bugzilla and it seems that the bug is already reported since version 4.8.1 and currently being unassigned with status new.

- Thus, is a bug. Well spotted you should report it.

Problem

Is it bug, that `std::rotate` function have `void` return value type in GCC 4.9 even if I specify `-std=gnu++1y` flag? As it pointed here there should be meaningfull (for some applications) return value.

Original source