Questions tagged [duplicate-code]

Code duplication, also sometimes known as code cloning, is a programming practice consisting in repeating the same (or similar) sequences of code statements within a software same project, potentially causing bug propagation, increased code complexity, code clutter. Use this tag for questions concerning minimizing duplicate code.

Filter by
Sorted by
Tagged with
3 votes
1 answer
130 views

Partial specialization of class template with minimal code duplication

I have a class template that stores an std::optional<T>. A very reduced version of the class template looks like this: ...
joergbrech's user avatar
4 votes
1 answer
707 views

Basic recursive descent parser in C

The purpose of this code is to evaluate simple integer expressions that make use of the C arithmetic and bitwise operators while respecting C operator precedence and parenthesis. I wrote this code ...
CPlus's user avatar
  • 928