Skip to content
Snippets Groups Projects
Commit 253040f9 authored by Fabian Reister's avatar Fabian Reister
Browse files

no need for special "nullopt" handling. using null instead

parent c42f3fe2
No related branches found
No related tags found
1 merge request!315Fix/read variable size matrices and optionals
......@@ -163,17 +163,4 @@ namespace armarx::aron::data::reader
i = input;
}
bool
NlohmannJSONReaderWithoutTypeCheck::readNull(InputType& input)
{
try
{
const std::string e = input;
return e == "nullopt";
}
catch (...)
{
return false;
}
}
} // namespace armarx::aron::data::reader
......@@ -70,6 +70,5 @@ namespace armarx::aron::data::reader
void readString(InputType& input, std::string& i, Path& p) override;
void readBool(InputType& input, bool& i, Path& p) override;
bool readNull(InputType& input) override;
};
} // namespace armarx::aron::data::reader
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment