From 3cf2426e1a2975a60176cb46040fccfbc182d771 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 21 Aug 2017 14:22:26 +0100 Subject: Make vector+vector template more readable --- libdevcore/CommonData.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libdevcore') diff --git a/libdevcore/CommonData.h b/libdevcore/CommonData.h index 6f40d7be..0321011e 100644 --- a/libdevcore/CommonData.h +++ b/libdevcore/CommonData.h @@ -184,7 +184,8 @@ template inline std::vector operator+(std::vector const& _a, std::vector const& _b) { std::vector ret(_a); - return ret += _b; + ret += _b; + return ret; } template -- cgit