Breaking Wrapper Changes
Wrappers now consistently leave off the () for less typing
glz::quotedfor reading numbers as strings and writing them as strings has been replaced withglz::quoted_num- The recent
glz::unquotehas been replaced with the nameglz::quoted, which reads a string into a value and writes the value with quotes. This is less efficient for numbers thanglz::quoted_num.
Below shows the format for adding wrappers within glaze metadata.
glz::quoted_num<&T::x> // reads a number as a string and writes it as a string
glz::quoted<&T::x> // reads a value as a string and unescapes, to avoid the user having to parse twice
glz::number<&T::x> // reads a string as a number and writes the string as a number
glz::invoke<&T::func> // invokes a std::function or member function with n-arguments as an array input
glz::custom<&T::read, &T::write> // calls custom read and write std::functions or member functions