marlowa opened a new pull request, #2055:
URL: https://github.com/apache/avro/pull/2055

   The command line option --cpp17 has been added to the avrogencpp command. 
   The option is used when avrogencpp has been built in an environment where 
the features of C++17
   are not enabled by default but project using avrogencpp employs a compiler 
option to turn those features on.
   In such cases the project will want the code emitted by avrogencpp to also 
use c++17. 
   The particular part of C++17 that used by avrogencpp is the any class. 
   In C++17 we can use std::any, otherwise boost::any is used. 
   There is a significant advantage to using std::any if it is available since 
it has the small buffer optimisation (SBO),
   which boost does not. In RHEL 8 gcc 8.5.0 does not use C++17 by default and 
avro-cpp, also in the Red Hat repo,
   must have been built using it since it emits code that uses boost::any. 
   This option enables avrogencpp in RHEL distros to emit code that uses C++17.
   


-- 
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: dev-unsubscr...@avro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to