Is it OK to call functions for default member initialization?

前端 未结 0 829
灰色年华
灰色年华 2021-02-15 05:27

Is the following code good and valid? Can you provide a quote from the standard?

class C
{
public:
    int i0 = 10;
    int i1 = i0 * 10;
    int i2 = get_int();
         


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