Std :: rotate return value in gcc 4.9

Is it a mistake that the std::rotate function has a void return type in GCC 4.9, even if I specify the -std=gnu++1y flag? As he pointed out here , there should be a valuefull value (for some applications) the return value.

+6
source share
1 answer
  • It seems that std::rotate in gcc does not comply with the C ++ 11 standard (i.e. not yet implemented).
  • I searched for GCC Bugzilla and it seems that the error has already been reported since version 4.8.1 and is not currently assigned with a new status.
  • So this is a mistake. Well noticed that you should report this.
+5
source

Source: https://habr.com/ru/post/970176/


All Articles