|
Boost Users : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-03-17 10:11:01
> I'm trying to register some user exceptions on the unit_test framework
> so I did the following:
>
> #include <boost/test/unit_test.hpp>
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net