Skip to content

Commit

Permalink
Workaround for bug in g++-8.2 (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmusta authored Aug 26, 2022
1 parent ee7a09c commit 1374444
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ifeq ($(env), docker)
$(shell mkdir -p $(BUILD_DIR_HOST_DOCKER) $(BUILD_DIR_STATIC_HOST_DOCKER) )
EXEC_CMD := $(DOCKER_BASE_CMD) bash -c
else
EXEC_CMD := bash -l -c
EXEC_CMD := bash -c
endif

all: update build test
Expand Down
4 changes: 3 additions & 1 deletion metagraph/src/annotation/row_diff_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,9 @@ void convert_batch_to_row_diff(const std::string &pred_succ_fprefix,
uint64_t r = 0;
set_rows[l_idx][j].for_each([&](const auto &v) {
call(utils::get_first(v));
if constexpr(with_values) {
// TODO: this should be constexpr(with_values), but due to a bug
// in g++-8.2, that doesn't compile
if constexpr(utils::is_pair_v<T>) {
assert(v.second && "zero diffs must have been skipped");
values[l_idx][j][r++] = matrix::encode_diff(v.second);
}
Expand Down

0 comments on commit 1374444

Please sign in to comment.