lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 5751c10 1/2: Include appropriate C++11 header


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 5751c10 1/2: Include appropriate C++11 header for swap()
Date: Mon, 22 Oct 2018 18:19:34 -0400 (EDT)

branch: master
commit 5751c10029d7dce613a708427cc87d0581658e02
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Include appropriate C++11 header for swap()
    
    It moved from <algorithm> to <utility>.
---
 any_member.hpp       | 3 ++-
 multidimgrid_any.cpp | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/any_member.hpp b/any_member.hpp
index e18ed21..81f71a3 100644
--- a/any_member.hpp
+++ b/any_member.hpp
@@ -66,11 +66,12 @@
 #include "rtti_lmi.hpp"
 #include "value_cast.hpp"
 
-#include <algorithm>                    // lower_bound(), swap()
+#include <algorithm>                    // lower_bound()
 #include <map>
 #include <sstream>
 #include <stdexcept>
 #include <type_traits>
+#include <utility>                      // swap()
 #include <vector>
 
 // Definition of class placeholder.
diff --git a/multidimgrid_any.cpp b/multidimgrid_any.cpp
index 771560d..2c29d20 100644
--- a/multidimgrid_any.cpp
+++ b/multidimgrid_any.cpp
@@ -38,6 +38,7 @@
 
 #include <algorithm>
 #include <sstream>
+#include <utility>                      // swap()
 
 /// MultiDimAxisAny functions implementation
 /// --------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]