Boost logo

Boost :

From: Hubert Holin (Hubert.Holin_at_[hidden])
Date: 2003-01-29 11:21:36


Somewhere in the E.U., le 29/01/2003

   Bonjour

      I guess I am being denser than usual, but I just can't seem to
find the solution to the following problem:

given

   boost::unit_test_framework::test_suite * test = BOOST_TEST_SUITE("");

if I have the following

   template<typename T> void atanh_test(){}

then I can use the following invocation

   test->add(BOOST_TEST_CASE(&atanh_test<float>));

however, if I have

   template<typename T>
   class atanh_tester
   {
   public:
      atanh_tester(char *)
      {
      }
      
      void operator () ()
      {
         // whatever
      }
   };

how can I add a test case to "test" buit from an instance of
atanh_tester<float> ?

   Merci

      Hubert Holin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk