Based on answers here and here I am trying to use the following
template <typename T>
using operator_square_brackets = decltype(&T::operator[]);
It fails on visual studio with
error C2760: syntax error: expected ')' not ']'
Any ideas on how to fix this?