[unit-test] Can'f find boost::unit_test::register_exception_translator

I'm trying to register some user exceptions on the unit_test framework
so I did the following:
#include

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
participants (2)
-
Gennadiy Rozental
-
Gustavo Ribeiro Alves