confused about uniform_01
            
            
            
                14 May
                
                    2007
                
            
            
                14 May
                
                '07
                
            
            
            
        
    
                10:47 p.m.
            
        I'm confused. Usually I want to share the state of 1 underlying rng between many distributions, to ensure good independence. So, for example: boost::variate_generator<rng_t&, boost::uniform_real<> > gen; But uniform_01 holds a rng member: base_type _rng; which is not declared as a reference. But, I _can't_ make it a reference, by doing: boost::uniform_01<rng_t&> eng; Because uniform_01 says: base_type& base() { return _rng; } Which would then be && and won't compile. What am I not understanding?
        6749
        
      
          Age (days ago)
        
      
        6749
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                
Neal Becker