Page MenuHomePhorge

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

Authored by tusooa on Tue, Sep 16, 5:37 AM.

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable