Changeset 1661


Ignore:
Timestamp:
Dec 18, 2008, 5:11:21 PM (12 years ago)
Author:
Peter
Message:

refs #466: moved destructor to be (pure) virtual and public.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/interpolation_test.cc

    r1656 r1661  
    3333#include <cmath>
    3434
     35using namespace theplu::yat;
     36void test_delete(test::Suite&);
     37
    3538int main(int argc, char* argv[])
    3639{
    37   using namespace theplu::yat;
    3840  using namespace theplu::yat::regression;
    3941
    4042  test::Suite suite(argc, argv);
     43  test_delete(suite);
    4144
    4245  /*
     
    105108  return suite.return_value();
    106109}
     110
     111void test_delete(test::Suite& suite)
     112{
     113  utility::Vector x(10);
     114  for (size_t i=0; i<x.size(); ++i)
     115    x(i)=i;
     116  regression::GSLInterpolation* ip = new regression::CSplineInterpolation(x,x);
     117  delete ip;
     118}
     119
  • trunk/yat/regression/GSLInterpolation.h

    r1655 r1661  
    6262
    6363  public:
     64    /**
     65       \brief The destructor
     66    */
     67    virtual ~GSLInterpolation(void)=0;
     68
    6469    /**
    6570       \brief Check the error status
     
    169174                     const utility::VectorBase& y);
    170175
    171     /**
    172        \brief The destructor
    173     */
    174     virtual ~GSLInterpolation(void);
    175 
    176176  private:
    177177    /**
Note: See TracChangeset for help on using the changeset viewer.