blob: cefcff07e1c773e76ac17b8822bf50442cb706bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "result.h"
#include "message.h"
namespace mbus {
Result::Result()
: _accepted(true),
_error(),
_msg()
{ }
Result::Result(const Error &err, std::unique_ptr<Message> msg)
: _accepted(false),
_error(err),
_msg(std::move(msg))
{ }
Result::~Result() = default;
} // namespace mbus
|