From a3de23d18768677c095c3645cedd3b3d1f9ce15b Mon Sep 17 00:00:00 2001 From: Martin Nolte <mnolte@dune-project.org> Date: Tue, 20 Oct 2009 06:55:58 +0000 Subject: [PATCH] make sure "from" need not be copied (see FS#622) [[Imported from SVN: r5666]] --- dune/common/typetraits.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dune/common/typetraits.hh b/dune/common/typetraits.hh index 176a06b8d..1e3e6ff48 100644 --- a/dune/common/typetraits.hh +++ b/dune/common/typetraits.hh @@ -183,7 +183,8 @@ namespace Dune struct Big {char dummy[2];}; static Small test(To); static Big test(...); - static From makeFrom(); + static typename TypeTraits< From >::ReferredType &makeFrom (); + public: enum { /** @brief True if the conversion exists. */ -- GitLab