Implicit cast to array index type

前端 未结 0 1429
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 04:24

Let\'s say I have following type:

struct XY
{
  short nIndex;
  
  constexpr operator int()
  {
     return nIndex;
  }
};

What can I change

相关标签:
回答
  • 消灭零回复
提交回复
热议问题