constexpr static member pointer compiles with gcc and clang, but not with MSVC

后端 未结 0 751
梦毁少年i
梦毁少年i 2020-12-18 05:00

The following class

class Foo
{
    int member;
    inline static constexpr auto r = &Foo::member;
};
相关标签:
回答
  • 消灭零回复
提交回复
热议问题