C++ Logo

std-discussion

Advanced search

subscripting fold expression

From: Christof Meerwald <cmeerw_at_[hidden]>
Date: Thu, 25 Apr 2019 22:32:59 +0200
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

Received on 2019-04-25 15:34:39