From 8c77724f88143dcc80118ed3cd09c855eac60dd7 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Wed, 17 Mar 2021 00:32:25 +0100 Subject: [PATCH] return alias value by value --- include/cubescript/cubescript.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/cubescript/cubescript.hh b/include/cubescript/cubescript.hh index ed43f05..7fbcc62 100644 --- a/include/cubescript/cubescript.hh +++ b/include/cubescript/cubescript.hh @@ -301,11 +301,7 @@ struct OSTD_EXPORT cs_alias: cs_ident { friend struct cs_shared_state; friend struct cs_alias_internal; - cs_value const &get_value() const { - return p_val; - } - - cs_value &get_value() { + cs_value get_value() const { return p_val; }