Implement FD logic in C++

Implement the complete FD logic in C++, instead of only the steps. Improves readability.

Merge request reports

Loading