How to rewrite unnecessarily complicated lines of C++ code
I've been looking through someone else's code for debugging purposes and
found this:
!m_seedsfilter ? good=true : m_seedsfilter==1 ? good=newClusters(Sp) :
good=newSeed(Sp);
What does this mean? Is there an automated tool that will render this into
more comprehensible if/else statements? Any tips for dealing with
complicated control structures like this?
No comments:
Post a Comment