Is it OK to call functions for default member initialization?

前端 未结 0 1770
一生所求
一生所求 2021-02-15 05:41

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();
         


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