Hallo!
I'm looking for a way to add custom messages to assert statements. I found this questions http://stackoverflow.com/questions/3692954/add-custom-messages-in-assert but the message is static there. I want to do something like this:
assert((0 < x) && (x < 10), std::string("x was ") + myToString(x));
When the assertion fails I want the normal output plus for example "x was 100".