Why not just ask the candidate what makes this job different from the previous ones?
If the answer is something along the lines of "I'll want to gain knowledge of and practical experience with C++, but the previous jobs wouldn't let me work in anything besides Java and scripting languages", it's good indication that are looking for a long-term home and not just a higher salary.
Candidates with short-term employment backgrounds aren't a problem, per se. We want you to be a long-term employee because you like it at our company and want to contribute to something meaningfully. We don't want to be a short-term paycheque job.