
17 Mar
2006
17 Mar
'06
3:11 p.m.
I'm trying to register some user exceptions on the unit_test framework so I did the following:
#include
using boost::unit_test::register_exception_translator; . . . void translate_InvalidInterval(const Interval::InvalidInterval& e) { }
void translate_NotIntercept(const Interval::NotIntercept& e) { }
[...]
So, how what do I have to include to make this work?
What you need to say is: boost::unit_test::unit_test_monitor.register_exception_translator< Interval::NotIntercept>(translate_NotIntercept) Gennadiy