diff --git a/src/glaze.serializer.cpp b/src/glaze.serializer.cpp index d785d6e..ee626e3 100644 --- a/src/glaze.serializer.cpp +++ b/src/glaze.serializer.cpp @@ -27,10 +27,16 @@ struct glz::meta namespace saucer::serializers::glaze { - static constexpr auto opts = glz::opts{ - .error_on_unknown_keys = true, - .error_on_missing_keys = true, - .raw_string = false, + struct raw_string_opts : glz::opts { + bool raw_string = true; + }; + + static constexpr auto opts = raw_string_opts{ + glz::opts{ + .error_on_unknown_keys = true, + .error_on_missing_keys = true, + }, + false // raw_string }; serializer::~serializer() = default;