https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112876

康桓瑋 <hewillk at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|rangesc.end() is            |ranges:to: c.end() is
                   |unnecessarily assigned by   |unnecessarily assigned by
                   |the return value of         |the return value of
                   |c.emplace()                 |c.emplace()

--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
which is not guaranteed to be well-formed.

#include <ranges>

struct R {
  std::string insert(int, int);
  int end();
};
auto r = std::ranges::to<R>(std::views::single(0));

Reply via email to