summaryrefslogtreecommitdiffstats
path: root/vdstestlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2017-09-25 20:47:01 +0200
committerTor Egge <Tor.Egge@broadpark.no>2017-09-25 20:47:01 +0200
commit9038361fe343b01116d95c12f497e79a8889f65e (patch)
tree7ae30c5d28fabf47212dbf39d4e230e8135baa64 /vdstestlib
parent16999350589b9f8ccdc9cb36cb361ef2a0c86fa8 (diff)
Eliminate inlining warnings.
Diffstat (limited to 'vdstestlib')
-rw-r--r--vdstestlib/src/vespa/vdstestlib/cppunit/macros.h44
1 files changed, 1 insertions, 43 deletions
diff --git a/vdstestlib/src/vespa/vdstestlib/cppunit/macros.h b/vdstestlib/src/vespa/vdstestlib/cppunit/macros.h
index 5f7ce892723..fdde94bbbd6 100644
--- a/vdstestlib/src/vespa/vdstestlib/cppunit/macros.h
+++ b/vdstestlib/src/vespa/vdstestlib/cppunit/macros.h
@@ -4,6 +4,7 @@
*/
#pragma once
#include <cppunit/extensions/HelperMacros.h>
+#include <vespa/vespalib/test/insertion_operators.h>
// Wrapper for CPPUNIT_ASSERT_EQUAL_MESSAGE to prevent it from evaluating
@@ -147,49 +148,6 @@
// Create output operator for containers.
// Needed so we can use CPPUNIT_ASSERT_EQUAL with them.
-// TODO: Remove these functions from the std namespace.
-namespace std {
- template<typename T>
- inline std::ostream& operator<<(std::ostream& out, const std::vector<T>& v)
- {
- out << "std::vector(" << v.size() << ") {";
- for (uint32_t i=0, n=v.size(); i<n; ++i) {
- out << "\n " << v[i];
- }
- if (v.size() > 0) out << "\n";
- return out << "}";
- }
- template<typename T>
- inline std::ostream& operator<<(std::ostream& out, const std::set<T>& v)
- {
- out << "std::set(" << v.size() << ") {";
- for (typename std::set<T>::const_iterator it = v.begin(); it != v.end();
- ++it)
- {
- out << "\n " << *it;
- }
- if (v.size() > 0) out << "\n";
- return out << "}";
- }
- template<typename S, typename T>
- inline std::ostream& operator<<(std::ostream& out, const std::map<S, T>& m)
- {
- out << "std::map(" << m.size() << ") {";
- for (typename std::map<S, T>::const_iterator it = m.begin();
- it != m.end(); ++it)
- {
- out << "\n " << *it;
- }
- if (m.size() > 0) out << "\n";
- return out << "}";
- }
- template<typename S, typename T>
- inline std::ostream& operator<<(std::ostream& out, const std::pair<S, T>& p)
- {
- return out << "std::pair(" << p.first << ", " << p.second << ")";
- }
-}
-
template<typename S, typename T>
std::ostream&
operator<<(std::ostream& out, const std::unordered_map<S, T>& umap)