]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/random/uniform_on_sphere.hpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / boost / random / uniform_on_sphere.hpp
index 72c25ef78142ae82c20a103df80d0e7caacfc088..ce2e35237e05c6ff39703296bf6b878518ea57ed 100644 (file)
@@ -225,8 +225,12 @@ public:
                     }
                 } while(sqsum == 0);
                 // for all i: result[i] /= sqrt(sqsum)
-                std::transform(_container.begin(), _container.end(), _container.begin(),
-                               std::bind2nd(std::multiplies<RealType>(), 1/sqrt(sqsum)));
+                RealType inverse_distance = 1 / sqrt(sqsum);
+                for(typename Cont::iterator it = _container.begin();
+                    it != _container.end();
+                    ++it) {
+                    *it *= inverse_distance;
+                }
             }
         }
         return _container;