From 43078dc5977b48b370e5b9f79af03b12d0bf6ab8 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Mon, 22 Jul 2013 13:40:07 +0200 Subject: [PATCH] add get_component --- triqs/gf/meshes/product.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/triqs/gf/meshes/product.hpp b/triqs/gf/meshes/product.hpp index 95627f2f..7882024c 100644 --- a/triqs/gf/meshes/product.hpp +++ b/triqs/gf/meshes/product.hpp @@ -165,6 +165,9 @@ namespace triqs { namespace gf { template auto get_point(P const & p) DECL_AND_RETURN( std::get( p.mesh()->components() ).index_to_point( std::get(p.components_tuple()).index() ) ); + template + auto get_component(P const & p) DECL_AND_RETURN( std::get(p.components_tuple())); + // C++14 //auto get_point(P const & p) { return std::get (p.mesh()->components()).index_to_point( std::get(p.components_tuple()));}