From: Noah Watkins Date: Tue, 29 Oct 2013 18:50:24 +0000 (-0700) Subject: crush: add mising header for count X-Git-Tag: v0.73~29^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F821%2Fhead;p=ceph.git crush: add mising header for count Signed-off-by: Noah Watkins --- diff --git a/src/crush/CrushTester.cc b/src/crush/CrushTester.cc index 0a649d8c77c0..b38386d01796 100644 --- a/src/crush/CrushTester.cc +++ b/src/crush/CrushTester.cc @@ -1,6 +1,7 @@ #include "CrushTester.h" +#include #include @@ -203,7 +204,7 @@ bool CrushTester::check_valid_placement(int ruleno, vector in, const vector // check that we don't have any duplicate id's for (vector::iterator it = included_devices.begin(); it != included_devices.end(); ++it) { - int num_copies = count(included_devices.begin(), included_devices.end(), (*it) ); + int num_copies = std::count(included_devices.begin(), included_devices.end(), (*it) ); if (num_copies > 1) { valid_placement = false; }