Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7743704
D231.1758155402.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
476 B
Referenced Files
None
Subscribers
None
D231.1758155402.diff
View Options
diff --git a/src/base/json-utils.hpp b/src/base/json-utils.hpp
--- a/src/base/json-utils.hpp
+++ b/src/base/json-utils.hpp
@@ -36,7 +36,7 @@
std::optional<std::decay_t<Jsonish>> getInJson(Jsonish &&j, RangeT &&path, std::size_t index = 0)
{
if (index >= path.size()) {
- return std::forward<Jsonish>(j);
+ return std::optional<std::decay_t<Jsonish>>(std::forward<Jsonish>(j));
}
auto currentSegment = path[index];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 17, 5:30 PM (10 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
458442
Default Alt Text
D231.1758155402.diff (476 B)
Attached To
Mode
D231: Fix potential ambiguous conversion from json to optional<json>
Attached
Detach File
Event Timeline
Log In to Comment