aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-21 21:22:26 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-22 17:51:46 +0800
commit3cf2426e1a2975a60176cb46040fccfbc182d771 (patch)
treedd48e55b8950a6928fb76cadc0cc2dc1b80a8049 /libdevcore
parente2cfc9ee92158169b5dd058074f25d67959e9875 (diff)
downloaddexon-solidity-3cf2426e1a2975a60176cb46040fccfbc182d771.tar
dexon-solidity-3cf2426e1a2975a60176cb46040fccfbc182d771.tar.gz
dexon-solidity-3cf2426e1a2975a60176cb46040fccfbc182d771.tar.bz2
dexon-solidity-3cf2426e1a2975a60176cb46040fccfbc182d771.tar.lz
dexon-solidity-3cf2426e1a2975a60176cb46040fccfbc182d771.tar.xz
dexon-solidity-3cf2426e1a2975a60176cb46040fccfbc182d771.tar.zst
dexon-solidity-3cf2426e1a2975a60176cb46040fccfbc182d771.zip
Make vector+vector template more readable
Diffstat (limited to 'libdevcore')
-rw-r--r--libdevcore/CommonData.h3
1 files changed, 2 insertions, 1 deletions
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 <class T>
inline std::vector<T> operator+(std::vector<T> const& _a, std::vector<T> const& _b)
{
std::vector<T> ret(_a);
- return ret += _b;
+ ret += _b;
+ return ret;
}
template <class T, class V>