C++ Logo

STD-DISCUSSION

Advanced search

Subject: subscripting fold expression
From: Christof Meerwald (cmeerw_at_[hidden])
Date: 2019-04-25 15:32:59


Just noticed that I can't fold a subscripting expression, i.e.
something like:

template<typename T, typename ... II>
constexpr auto foo(T t, II ... i)
{
  return (t [] ... [] i);
}

Is this intentionally not allowed?

Christof

-- 
http://cmeerw.org                              sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org

STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups