getfem-commits
[Top][All Lists]
Advanced

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

[Getfem-commits] (no subject)


From: Yves Renard
Subject: [Getfem-commits] (no subject)
Date: Thu, 25 May 2017 12:21:27 -0400 (EDT)

branch: devel-yves
commit 14cec4b571482637a6ad362ae1401fe4ac32f28b
Author: Yves Renard <address@hidden>
Date:   Thu May 25 18:03:10 2017 +0200

    Removing definition of operator << for std::vector<T> from namespace std
---
 contrib/aposteriori/aposteriori.cc               | 3 ++-
 contrib/crack_plate/crack_bilaplacian_problem.cc | 2 ++
 contrib/crack_plate/crack_mindlin.cc             | 3 ++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/contrib/aposteriori/aposteriori.cc 
b/contrib/aposteriori/aposteriori.cc
index 80cd8b9..94e8bf1 100644
--- a/contrib/aposteriori/aposteriori.cc
+++ b/contrib/aposteriori/aposteriori.cc
@@ -40,7 +40,8 @@
 
 using std::endl; using std::cout; using std::cerr;
 using std::ends; using std::cin;
-
+template <typename T> std::ostream &operator <<
+  (std::ostream &o, const std::vector<T>& m) { gmm::write(o,m); return o; }
 
 /* some GetFEM++ types that we will be using */
 using bgeot::base_small_vector; /* special class for small (dim<16) vectors */
diff --git a/contrib/crack_plate/crack_bilaplacian_problem.cc 
b/contrib/crack_plate/crack_bilaplacian_problem.cc
index 516745c..d04f0ec 100644
--- a/contrib/crack_plate/crack_bilaplacian_problem.cc
+++ b/contrib/crack_plate/crack_bilaplacian_problem.cc
@@ -28,6 +28,8 @@
 
 using std::endl; using std::cout; using std::cerr;
 using std::ends; using std::cin;
+template <typename T> std::ostream &operator <<
+  (std::ostream &o, const std::vector<T>& m) { gmm::write(o,m); return o; }
 
 size_type is_global_dof_type_bis(getfem::pdof_description dof){
 size_type global_dof = 0 ;
diff --git a/contrib/crack_plate/crack_mindlin.cc 
b/contrib/crack_plate/crack_mindlin.cc
index db38fa1..c0b2db4 100644
--- a/contrib/crack_plate/crack_mindlin.cc
+++ b/contrib/crack_plate/crack_mindlin.cc
@@ -42,7 +42,8 @@
 
 using std::endl; using std::cout; using std::cerr;
 using std::ends; using std::cin;
-
+template <typename T> std::ostream &operator <<
+  (std::ostream &o, const std::vector<T>& m) { gmm::write(o,m); return o; }
 
 /* some GetFEM++ types that we will be using */
 using bgeot::base_small_vector; /* special class for small (dim<16) vectors */



reply via email to

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