Builder pattern with compile time check that everything is initialized

前端 未结 0 646
灰色年华
灰色年华 2021-02-07 04:59

I would like to have a builder for my class (for the sake of simplicity) say

struct X { int x, y; };

I would like to enforce that all my variable

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