From 3d1f1ea499dd811be8544d0e96accf2beb8331f0 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Sat, 1 Oct 2016 22:02:27 +1000 Subject: [PATCH] Gmt module: Fix segfault. --- modules/gmt/modgmt_param.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gmt/modgmt_param.h b/modules/gmt/modgmt_param.h index 0efc02d..08adbaa 100644 --- a/modules/gmt/modgmt_param.h +++ b/modules/gmt/modgmt_param.h @@ -18,7 +18,7 @@ class Parameter template struct Adapter {static const typename Conv::ValueType& Val(const Conv& cnv) {return cnv.Default();}}; template - struct Adapter {static typename Conv::ValueType&& Val(const Conv& cnv) {return std::move(typename Conv::ValueType());}}; + struct Adapter {static typename Conv::ValueType Val(const Conv& cnv) {return typename Conv::ValueType();}}; template struct CheckDefault