From 1e1758e8c30d30df0ebeefbada1e5a8f74d8a350 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 11 Jul 2024 13:22:16 +0200 Subject: Use static Create functions to construct ArtifactDescription ...instead of unobvious ctors relying on overload resolution. --- src/buildtool/common/tree.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/common/tree.hpp') diff --git a/src/buildtool/common/tree.hpp b/src/buildtool/common/tree.hpp index 6e066c75..e9d5ef84 100644 --- a/src/buildtool/common/tree.hpp +++ b/src/buildtool/common/tree.hpp @@ -51,7 +51,7 @@ class Tree { } [[nodiscard]] auto Output() const -> ArtifactDescription { - return ArtifactDescription{id_}; + return ArtifactDescription::CreateTree(id_); } [[nodiscard]] static auto FromJson(std::string const& id, -- cgit v1.2.3