You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2011/08/12 22:20:27 UTC

[jira] [Updated] (AVRO-855) Use boost:variants for union types in C++ code generation

     [ 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