📝 fix docs (#5217)
This commit is contained in:
1 parent
c37f82e563
commit
c5b2b26fdc
93 files changed
+743
-1209
No files matched your search
@@ -122,14 +122,13 @@ The default value is `0`.
|
||||
|
||||
void to_json(json& j, const Choice& ch)
|
||||
{
|
||||
auto value = j.get<std::string>();
|
||||
if (value == "first")
|
||||
if (ch == Choice::first)
|
||||
{
|
||||
ch = Choice::first;
|
||||
j = "first";
|
||||
}
|
||||
else if (value == "second")
|
||||
else if (ch == Choice::second)
|
||||
{
|
||||
ch = Choice::second;
|
||||
j = "second";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user