summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-11-26 16:57:57 -0500
committerErik Schnetter <schnetter@gmail.com>2013-11-26 17:01:57 -0500
commit8f6c6f0bff47dc1d508b3ea70150f65a96c449be (patch)
tree8722afdf31f6646dbde74d8d42a915d7fff5e67a
parent80736b6e3754af935d3a86afc9ad9bd0103b5e51 (diff)
downloadvecmathlib-8f6c6f0bff47dc1d508b3ea70150f65a96c449be.zip
vecmathlib-8f6c6f0bff47dc1d508b3ea70150f65a96c449be.tar.gz
Don’t define << or >> for VML_NO_IOSTREAM
-rw-r--r--vec_builtin.h2
-rw-r--r--vec_pseudo.h2
-rw-r--r--vec_test.h2
3 files changed, 6 insertions, 0 deletions
diff --git a/vec_builtin.h b/vec_builtin.h
index 1933468..e6cde58 100644
--- a/vec_builtin.h
+++ b/vec_builtin.h
@@ -1415,6 +1415,7 @@ namespace vecmathlib {
+#ifndef VML_NO_IOSTREAM
template<typename real_t, int size>
std::ostream& operator<<(std::ostream& os,
boolbuiltinvec<real_t, size> const& x)
@@ -1453,6 +1454,7 @@ namespace vecmathlib {
os << "]";
return os;
}
+#endif
} // namespace vecmathlib
diff --git a/vec_pseudo.h b/vec_pseudo.h
index a79e072..2aafc23 100644
--- a/vec_pseudo.h
+++ b/vec_pseudo.h
@@ -1633,6 +1633,7 @@ namespace vecmathlib {
+#ifndef VML_NO_IOSTREAM
template<typename real_t, int size>
std::ostream& operator<<(std::ostream& os,
boolpseudovec<real_t, size> const& x)
@@ -1671,6 +1672,7 @@ namespace vecmathlib {
os << "]";
return os;
}
+#endif
} // namespace vecmathlib
diff --git a/vec_test.h b/vec_test.h
index 8222919..46fc9d1 100644
--- a/vec_test.h
+++ b/vec_test.h
@@ -1436,6 +1436,7 @@ namespace vecmathlib {
+#ifndef VML_NO_IOSTREAM
template<typename real_t, int size>
std::ostream& operator<<(std::ostream& os,
booltestvec<real_t, size> const& x)
@@ -1474,6 +1475,7 @@ namespace vecmathlib {
os << "]";
return os;
}
+#endif
} // namespace vecmathlib
OpenPOWER on IntegriCloud