Ignore:
Timestamp:
May 3, 2020, 10:29:25 AM (3 years ago)
Author:
Peter
Message:

closes #944; add configure check whether class is availabale in boost and exclude typedef if not. Lift out test for that typedef to separate test so it can be skipped (without skipping all sister tests) when boost is old.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/random/ContinuousDistribution.h

    r3898 r3900  
    3434#include <boost/random/gamma_distribution.hpp>
    3535#include <boost/random/lognormal_distribution.hpp>
     36#ifdef YAT_HAVE_BOOST_RANDOM_NON_CENTRAL_CHI_SQUARED_DISTRIBUTION
    3637#include <boost/random/non_central_chi_squared_distribution.hpp>
     38#endif
    3739#include <boost/random/student_t_distribution.hpp>
    3840
     
    135137
    136138     \since New in yat 0.18
     139
     140     \note non_central_chi_squared_distribution is not available in
     141     older boost (it does exist in boost 1.59)
    137142   */
     143#ifdef YAT_HAVE_BOOST_RANDOM_NON_CENTRAL_CHI_SQUARED_DISTRIBUTION
    138144  typedef
    139145  ContinuousDistribution<boost::random::non_central_chi_squared_distribution<> >
    140146  NonCentralChiSquared;
     147#endif
    141148
    142149  /**
Note: See TracChangeset for help on using the changeset viewer.