[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 4d0450d: Replace boost with std minmax_elemen
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 4d0450d: Replace boost with std minmax_element |
Date: |
Fri, 20 Jan 2017 16:48:19 +0000 (UTC) |
branch: master
commit 4d0450d8c294e4d1776a1c77d56f25c67376faf0
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Replace boost with std minmax_element
---
miscellany.hpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/miscellany.hpp b/miscellany.hpp
index 417915b..3aae000 100644
--- a/miscellany.hpp
+++ b/miscellany.hpp
@@ -26,8 +26,6 @@
#include "so_attributes.hpp"
-#include <boost/algorithm/minmax_element.hpp>
-
#include <algorithm>
#include <cctype>
#include <climits> // UCHAR_MAX
@@ -66,7 +64,7 @@ class minmax
public:
explicit minmax(std::vector<T> const& v)
{
- extrema_t extrema = boost::minmax_element(v.begin(), v.end());
+ extrema_t extrema = std::minmax_element(v.begin(), v.end());
minimum_ = *extrema.first ;
maximum_ = *extrema.second;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 4d0450d: Replace boost with std minmax_element,
Greg Chicares <=