std::rotate return value in gcc 4.9

473 Views Asked by At

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.

1

There are 1 best solutions below

3
101010 On BEST ANSWER
  • 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.