Bidirectional reference problem using polymorphism to prevent switch-like code structure (C++)

前端 未结 0 771
[愿得一人]
[愿得一人] 2021-01-03 00:30

I have two classes:

class ServerSimple {
public:
    explicit ServerSimple(bool mode) : mode_(mode) {}

public:
    void DoSomething() {
        // some code          


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