Result: Add copy/move ctor/op=
authorChristian Kamm <mail@ckamm.de>
Tue, 8 Jan 2019 13:55:30 +0000 (14:55 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:33 +0000 (10:58 +0100)
commit7ef6e606603c09c46af5758fcf83381a3af91883
treefe7c0e86ce300d5973da8f797540f2e8e643fe73
parent3b923e2afec1067231728ff11b68976f4fec3840
Result: Add copy/move ctor/op=

It has a destructor and these operations make sense. Particularly the
move is important for code like:

Result<x, y> foo() { Result<x, y> v; return v; }

because the move-ctor will not autogenerate if x or y are not trivially
destructible.
src/common/result.h