After a lot of work, I managed to completely refactor the codebase. I am very happy with the result. The code has been divided into multiple source files and can now be scaled or edited very easily.
I received two replies on my post about my constexpr confusion and got some really wonderful responses that helped me understand how it can be used.