Corrections in the comments;

Small code fixes
This commit is contained in:
2024-12-18 15:07:19 +01:00
parent 903423da61
commit 0902d3d7ac
5 changed files with 13 additions and 8 deletions
+3 -3
View File
@@ -63,9 +63,9 @@ inline bool json_bool(json_t* object, bool default_value = false) {
}
}
// returns a blitz::TinyVector<double, s> with the values from a json_t pointer which points to
// a json-array; if the json_t pointer is not an array or the array has a different size than
// the specified template parameter s an error is thrown and the execution of the program terminated
// return the json-array "vector" in the given json-object object as a blitz::TinyVector
// if the "vector" json-array does not exist or does not contain the same number of elements as
// specified in the template parameter s an error is thrown
template <int s>
blitz::TinyVector<double, s> json_blitz_vector(json_t* object) {
blitz::TinyVector<double, s> vector;