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.
2 questions
3
votes
1
answer
152
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:
...
4
votes
1
answer
746
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 ...