Why lambda in static initializer can't access private members of class in VC++2013?

前端 未结 0 1727
野的像风
野的像风 2021-01-18 20:56

Consider the following piece of code:

#include 

class foo {
  int var = 99;
public:
  static int const i;
};

int const foo::i = [&] { r         


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