philippeVerney commented on code in PR #3545:
URL: https://github.com/apache/avro/pull/3545#discussion_r2522700102


##########
lang/c++/include/avro/Specific.hh:
##########
@@ -165,6 +166,44 @@ struct codec_traits<double> {
     }
 };
 
+/**
+* codec_traits for Avro optional.
+*/
+template<typename T>
+struct codec_traits<std::optional<T>> {
+    /**
+       * Encodes a given value.
+       */
+    static void encode(Encoder &e, const std::optional<T> &b) {

Review Comment:
   Got it now, thanks for the explanation.
   I don't see anything else to improve about your remark now that I added the 
comment in the documentation of the code_traits.
   However, I now perfectly share your concern.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to