diff --git a/include/boost/random/generate_canonical.hpp b/include/boost/random/generate_canonical.hpp index e84f41571d..23ff43dfac 100644 --- a/include/boost/random/generate_canonical.hpp +++ b/include/boost/random/generate_canonical.hpp @@ -54,7 +54,6 @@ RealType generate_canonical_impl(URNG& g, boost::mpl::false_ /*is_integral*/) using std::floor; BOOST_ASSERT((g.min)() == 0); BOOST_ASSERT((g.max)() == 1); - typedef typename URNG::result_type base_result; std::size_t digits = std::numeric_limits::digits; std::size_t engine_bits = detail::generator_bits::value(); std::size_t b = (std::min)(bits, digits); diff --git a/include/boost/random/uniform_real_distribution.hpp b/include/boost/random/uniform_real_distribution.hpp index 76c217be08..1a196ede68 100644 --- a/include/boost/random/uniform_real_distribution.hpp +++ b/include/boost/random/uniform_real_distribution.hpp @@ -36,7 +36,6 @@ T generate_uniform_real( { for(;;) { typedef T result_type; - typedef typename Engine::result_type base_result; result_type numerator = static_cast(eng() - (eng.min)()); result_type divisor = static_cast((eng.max)() - (eng.min)()); BOOST_ASSERT(divisor > 0);