Concordance problem in C++