From f4d42a4ec8a4efb3032346c272a4831e642b3057 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Sun, 30 Jun 2013 21:41:56 +0200 Subject: [PATCH] arrays : clean an old example --- test/triqs/arrays/views3.cpp | 7 +++++-- triqs/arrays/impl/indexmap_storage_pair.hpp | 10 ---------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/test/triqs/arrays/views3.cpp b/test/triqs/arrays/views3.cpp index fe183cde..d6fe9935 100644 --- a/test/triqs/arrays/views3.cpp +++ b/test/triqs/arrays/views3.cpp @@ -20,7 +20,6 @@ ******************************************************************************/ #include "./common.hpp" #define ARRAY_DEBUG_SLICE -#define TRIQS_ARRAYS_USE_OLD_KEY_EVAL #include "./src/array.hpp" #include @@ -32,7 +31,11 @@ using namespace triqs::arrays; template void print_in_indexmap_order (std::ostream & out, IM const & im, A const & a) { out<<"["; - for (typename IM::iterator it(im); it; ++it) out<num_elements()==0;} bool is_empty() const { return this->storage_.empty();} -#ifdef TRIQS_ARRAYS_USE_OLD_KEY_EVAL - // Evaluation on keys. - // deprecated : only used in one example ? - typedef typename domain_type::index_value_type key_type; - template value_type const & operator[](KeyType const & key) const { return storage_[indexmap_[key]]; } - template value_type & operator[](KeyType const & key) { return storage_[indexmap_[key]]; } -#endif - // ------------------------------- operator () -------------------------------------------- typedef typename ISPViewType::type view_type; @@ -208,8 +200,6 @@ namespace triqs { namespace arrays { typedef typename ISPViewType::type type; }; -// change here only for debug -//#define TRIQS_ARRAYS_SLICE_DEFAUT_IS_SHARED #ifndef TRIQS_ARRAYS_SLICE_DEFAUT_IS_SHARED template // non const version typename boost::lazy_enable_if_c<