diff --git a/flake.lock b/flake.lock index 40ed931..ec9dac9 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1726560853, - "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -69,11 +69,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1730272153, - "narHash": "sha256-B5WRZYsRlJgwVHIV6DvidFN7VX7Fg9uuwkRW9Ha8z+w=", + "lastModified": 1734435836, + "narHash": "sha256-kMBQ5PRiFLagltK0sH+08aiNt3zGERC2297iB6vrvlU=", "owner": "nixos", "repo": "nixpkgs", - "rev": "2d2a9ddbe3f2c00747398f3dc9b05f7f2ebb0f53", + "rev": "4989a246d7a390a859852baddb1013f825435cee", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 7ad58ea..bec07e6 100644 --- a/flake.nix +++ b/flake.nix @@ -98,7 +98,7 @@ [ vulkan-tools llvmPackages_19.clang-tools - llvmPackages_17.libllvm + llvmPackages_19.libllvm sccache just diff --git a/wren_utils/include/wren/utils/result.hpp b/wren_utils/include/wren/utils/result.hpp index 3822640..3445495 100644 --- a/wren_utils/include/wren/utils/result.hpp +++ b/wren_utils/include/wren/utils/result.hpp @@ -18,6 +18,7 @@ namespace wren { class Err { public: template + requires std::is_error_code_enum_v Err(T error) : error_code_(make_error_code(error)) {} Err(const std::error_code& ec) : error_code_(ec) {} Err(int32_t ec, const std::error_category& e_cat) : error_code_(ec, e_cat) {}