Skip to content

Commit

Permalink
Fix the GCC/Clang builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadden committed Oct 2, 2020
1 parent e59043c commit 6e90567
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions unit_tests/context/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,15 @@ TEST_CASE("content IDs", "[context][interface]")
REQUIRE(get_content_id(root_ctx) == unit_id);
auto outer_signal = value(outer);
auto outer_ctx = extend_context<outer_tag>(root_ctx, outer_signal);
// To avoid warnings about unused typedefs.
REQUIRE(signal_has_value(get<outer_tag>(outer_ctx)));
outer_id.capture(get_content_id(outer_ctx));
{
auto inner_signal = value(inner);
auto inner_ctx
= extend_context<inner_tag>(outer_ctx, inner_signal);
// To avoid warnings about unused typedefs.
REQUIRE(signal_has_value(get<inner_tag>(inner_ctx)));
inner_id.capture(get_content_id(inner_ctx));
{
decltype(outer_ctx) downcast_ctx = inner_ctx;
Expand Down

0 comments on commit 6e90567

Please sign in to comment.