[ 
https://issues.apache.org/jira/browse/PROTON-1815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kim van der Riet updated PROTON-1815:
-------------------------------------
    Description: 
If an array of AMQP nulls is contained in a list, the compiler fails with:
{noformat}
include/proton/./codec/vector.hpp:39:31: error: incomplete type 
‘proton::internal::type_id_of<std::nullptr_t>’ used in nested name specifier
{noformat}
Code snippet that produces this error:
{noformat}
std::vector<std::nullptr_t> _arr_27 = {nullptr, nullptr, };
std::vector<int8_t> _arr_28 = {int8_t(1), int8_t(2), };
std::vector<proton::value> _lst_7 = {_arr_27, _arr_28, };
{noformat}
which fails on the third line.

  was:
If an array of AMQP nulls is contained in a list, the compiler fails with:
{noformat}
include/proton/./codec/vector.hpp:39:31: error: incomplete type 
‘proton::internal::type_id_of<std::nullptr_t>’ used in nested name specifier
{noformat}
Code snippet that produces this error:
{noformat}
std::vector<std::nullptr_t> _arr_27 = {nullptr, nullptr, };
std::vector<int8_t> _arr_28 = {int8_t(1), int8_t(2), };
std::vector<proton::value> _lst_7 = {_arr_27, _arr_28, };
{noformat}


> [C++ binding]  Complex types: List containing array of std::nullptr_t fails 
> compilation
> ---------------------------------------------------------------------------------------
>
>                 Key: PROTON-1815
>                 URL: https://issues.apache.org/jira/browse/PROTON-1815
>             Project: Qpid Proton
>          Issue Type: Task
>          Components: cpp-binding
>            Reporter: Kim van der Riet
>            Priority: Major
>
> If an array of AMQP nulls is contained in a list, the compiler fails with:
> {noformat}
> include/proton/./codec/vector.hpp:39:31: error: incomplete type 
> ‘proton::internal::type_id_of<std::nullptr_t>’ used in nested name specifier
> {noformat}
> Code snippet that produces this error:
> {noformat}
> std::vector<std::nullptr_t> _arr_27 = {nullptr, nullptr, };
> std::vector<int8_t> _arr_28 = {int8_t(1), int8_t(2), };
> std::vector<proton::value> _lst_7 = {_arr_27, _arr_28, };
> {noformat}
> which fails on the third line.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to