Changeset 443


Ignore:
Timestamp:
Dec 15, 2005, 4:28:37 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Added missing virtual destructors.

Location:
trunk/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/random/random.h

    r425 r443  
    134134    inline Discrete(void) { rng_=RNG::instance(); }
    135135
     136    inline virtual ~Discrete(void) { }
     137
    136138    ///
    137139    /// Set the seed to \a s in the underlying rng. If \a s is zero, a
     
    179181    /// @brief Destructor
    180182    ///
    181     virtual ~DiscreteGeneral(void);
     183    ~DiscreteGeneral(void);
    182184
    183185    ///
     
    311313    inline Continuous(void) { rng_=RNG::instance(); }
    312314
     315    inline virtual ~Continuous(void) { }
     316
    313317    ///
    314318    /// Set the seed to \a s in the underlying rng. If \a s is zero, a
     
    373377    /// @brief Destructor
    374378    ///
    375     virtual ~ContinuousGeneral(void);
     379    ~ContinuousGeneral(void);
    376380
    377381    ///
  • trunk/lib/statistics/Kernel.cc

    r389 r443  
    77namespace regression{
    88
    9   Kernel::Kernel(void)
    10   {
    11   }
    12 
    139} // of namespace regression
    1410} // of namespace statistics
  • trunk/lib/statistics/Kernel.h

    r411 r443  
    1919    /// Constructor
    2020    ///
    21     Kernel();
     21    inline Kernel(void) {};
     22
     23    virtual ~Kernel(void) {};
    2224
    2325    ///
  • trunk/lib/statistics/KernelBox.h

    r411 r443  
    2121    /// Constructor
    2222    ///
    23     KernelBox() ;
     23    KernelBox(void);
    2424
    2525    ///
Note: See TracChangeset for help on using the changeset viewer.