make uniform distribution usage compatible with boost 1.46
authorJeff Donahue <jeff.donahue@gmail.com>
Wed, 22 Jan 2014 20:14:09 +0000 (12:14 -0800)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Fri, 21 Mar 2014 20:52:35 +0000 (13:52 -0700)
src/caffe/util/math_functions.cpp

index acd0343..812708f 100644 (file)
@@ -399,7 +399,7 @@ void caffe_vRngUniform(const int n, Dtype* r,
 
   // FIXME check if boundaries are handled in the same way ?
   // Fixed by caffe_nextafter
-  boost::random::uniform_real_distribution<Dtype> random_distribution(
+  boost::uniform_real<Dtype> random_distribution(
       a, caffe_nextafter<Dtype>(b));
   Caffe::random_generator_t &generator = Caffe::vsl_stream();