Meguhine's blog

By Meguhine, history, 3 hours ago, In English

AC code link

TLE code link

I only add std::move() manually to the TLE code, and it got AC.

But why ????? Shouldn't the Compiler add std::move() automatically ??????

diff

  • Vote: I like it
  • +3
  • Vote: I do not like it

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Meguhine (previous revision, new revision, compare).

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

That kind of optimization usually works if you return named object, not braced ctor.