Commit 18def4a5 authored by Dominik Charousset's avatar Dominik Charousset

Fix linker errors on Ubuntu 16.04

parent 0dd1db38
......@@ -144,10 +144,9 @@ actor_system_config::actor_system_config()
.add<string>(openssl_cafile, "cafile",
"path to a file of concatenated PEM-formatted certificates");
// add renderers for default error categories
error_renderers.emplace(error_category<sec>::value, render_sec);
error_renderers.emplace(error_category<pec>::value, render_pec);
error_renderers.emplace(error_category<exit_reason>::value,
render_exit_reason);
add_error_category(error_category<sec>::value, render_sec);
add_error_category(error_category<pec>::value, render_pec);
add_error_category(error_category<exit_reason>::value, render_exit_reason);
}
settings actor_system_config::dump_content() const {
......
......@@ -346,7 +346,7 @@ CAF_TEST(ranges can use signed integers) {
CAF_FAIL("expected expression to produce to an error"); \
} else { \
auto& err = res.error(); \
CAF_CHECK_EQUAL(err.category(), error_category<pec>::value); \
CAF_CHECK(err.category() == error_category<pec>::value); \
CAF_CHECK_EQUAL(err.code(), static_cast<uint8_t>(enum_value)); \
}
......
......@@ -377,7 +377,7 @@ CAF_TEST(maybe_string_delegator_chain) {
.receive([](ok_atom,
const string&) { CAF_FAIL("unexpected string response"); },
[](const error& err) {
CAF_CHECK_EQUAL(err.category(), error_category<sec>::value);
CAF_CHECK(err.category() == error_category<sec>::value);
CAF_CHECK_EQUAL(err.code(),
static_cast<uint8_t>(sec::invalid_argument));
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment