Page MenuHomePhorge

Fix potential ambiguous conversion from json to optional<json>
ClosedPublic

Authored by tusooa on Sep 16 2025, 5:37 AM.
Tags
None
Referenced Files
F8477859: D231.1761130789.diff
Tue, Oct 21, 3:59 AM
F8477543: D231.1761112155.diff
Mon, Oct 20, 10:49 PM
F8477484: D231.1761108496.diff
Mon, Oct 20, 9:48 PM
Subscribers
None

Details

Summary

Reported by @yifei:luv.asn.au on matrix. In some environments the compiler is not happy with return json(...); when the return type of the function is declared as std::optional<json>. This specifically invokes the std::optional constructor.

Type: fix

Test Plan

N/A

Diff Detail

Repository
rL libkazv
Branch
tusooa/stacked
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 427
Build 837: GitLab CI for libkazv
Build 836: arc lint + arc unit