diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index e7c5173..f8865f5 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -48,7 +48,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe go_rules_dependencies() -go_register_toolchains(version = "1.15.5") +go_register_toolchains(version = "host") # Install gtest. http_archive( diff --git a/dpf/tuple.h b/dpf/tuple.h index a42113f..4596305 100644 --- a/dpf/tuple.h +++ b/dpf/tuple.h @@ -103,7 +103,7 @@ namespace dpf_internal { template constexpr Tuple add(const Tuple& lhs, const Tuple& rhs, std::index_sequence) { - return Tuple{std::get(lhs.value()) + std::get(rhs.value())...}; + return Tuple{T(std::get(lhs.value()) + std::get(rhs.value()))...}; } template