Ticket #2679: uniform_01.hpp.diff

File uniform_01.hpp.diff, 1.1 KB (added by rick68@…, 14 years ago)

Patch

  • uniform_01.hpp

    old new  
    3939  BOOST_STATIC_ASSERT(!std::numeric_limits<RealType>::is_integer);                                       
    4040#endif                                                                                                   
    4141                                                                                                         
    42   explicit uniform_01(base_type rng)                                                                      
     42  explicit uniform_01(const base_type& rng)                                                               
    4343    : _rng(rng),                                                                                         
    4444      _factor(result_type(1) /                                                                           
    4545              (result_type((_rng.max)()-(_rng.min)()) +