Changeset 443 for trunk/lib/random


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

Added missing virtual destructors.

File:
1 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    ///
Note: See TracChangeset for help on using the changeset viewer.