From e9880cfc1e6e9c18573e594f97f8c67b193b2a3d Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Tue, 29 Oct 2013 11:50:24 -0700 Subject: [PATCH] crush: add mising header for count Signed-off-by: Noah Watkins --- src/crush/CrushTester.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crush/CrushTester.cc b/src/crush/CrushTester.cc index 0a649d8c77c..b38386d0179 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; }