Why doesn't this friend funtion allow brace-init-list but the static one does?

前端 未结 0 433
梦毁少年i
梦毁少年i 2020-12-12 21:50

Basicaly this code won\'t compile

struct M
{
    static void staticF(M m) {}
    friend void friendF(M m) {}
};

int m         


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