Ways to show your co-programmers that some methods are not yet implemented in a class when programming in C++

后端 未结 7 1584
生来不讨喜
生来不讨喜 2021-02-15 04:02

What approaches can you use when:

  • you work with several (e.g. 1-3) other programmers over a small C++ project, you use a single repository
  • you create a class,
7条回答
  •  被撕碎了的回忆
    2021-02-15 04:43

    The simplest answer is to tell them. Communication is key whenever you're working with a group of people.

    A more robust (and probably the best) option is to create your own branch to develop the new feature and only merge it back in when it's complete.

    However, if you really want your methods implemented in the main source tree but don't want people using them, stub them out with an exception or assertion.

提交回复
热议问题