You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ramana Suvarapu (JIRA)" <ji...@apache.org> on 2011/07/07 00:25:19 UTC
[jira] [Created] (AVRO-855) Use boost:variants for union types in
C++ code generation
Use boost:variants for union types in C++ code generation
---------------------------------------------------------
Key: AVRO-855
URL: https://issues.apache.org/jira/browse/AVRO-855
Project: Avro
Issue Type: Improvement
Components: c++
Affects Versions: 1.5.1
Reporter: Ramana Suvarapu
Fix For: 1.5.2
Hi,
Current C++ code avrocodegencpp generates union_n (where n = 0 to n numbered) structure with the member boost::any for union schemas.
Is it possible to use boost::variants instead of "union_n" structures? The advantage of boost::variant is we can define our boost::visitors and apply them to retrieve the actual type in the union.
Let me know?
-Ramana
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AVRO-855) Use boost:variants for union types in
C++ code generation
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doug Cutting updated AVRO-855:
------------------------------
Fix Version/s: (was: 1.5.2)
> Use boost:variants for union types in C++ code generation
> ---------------------------------------------------------
>
> Key: AVRO-855
> URL: https://issues.apache.org/jira/browse/AVRO-855
> Project: Avro
> Issue Type: Improvement
> Components: c++
> Affects Versions: 1.5.1
> Reporter: Ramana Suvarapu
> Labels: avro, c++
>
> Hi,
> Current C++ code avrocodegencpp generates union_n (where n = 0 to n numbered) structure with the member boost::any for union schemas.
> Is it possible to use boost::variants instead of "union_n" structures? The advantage of boost::variant is we can define our boost::visitors and apply them to retrieve the actual type in the union.
> Let me know?
> -Ramana
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira