Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended unit test with multi dimensional array examples, currently failes to compile #459

Closed
wants to merge 6 commits into from

Conversation

jwillemsen
Copy link
Member

BoundTestTypeSupportImpl.cpp: In function ‘bool DDS_3_10_0::OpenDDS::DCPS::operator<<(DDS_3_10_0::OpenDDS::DCPS::Serializer&, const MultiDoubleArray_forany&)’:
BoundTestTypeSupportImpl.cpp:1922:45: error: no matching function for call to ‘DDS_3_10_0::OpenDDS::DCPS::Serializer::write_double_array(const double (*)[2], int)’
   return strm.write_double_array(arr.in(), 4);
                                             ^
In file included from /home/johnny/ACE/OpenDDS/dds/DCPS/Serializer.h:328:0,
                 from /home/johnny/ACE/OpenDDS/dds/DCPS/Definitions.h:14,
                 from BoundTestTypeSupportImpl.h:6,
                 from BoundTestTypeSupportImpl.cpp:2:
/home/johnny/ACE/OpenDDS/dds/DCPS/Serializer.inl:494:1: note: candidate: bool DDS_3_10_0::OpenDDS::DCPS::Serializer::write_double_array(const Double*, ACE_6_4_1::ACE_CDR::ULong)
 Serializer::write_double_array(const ACE_CDR::Double* x, ACE_CDR::ULong length)
 ^~~~~~~~~~
/home/johnny/ACE/OpenDDS/dds/DCPS/Serializer.inl:494:1: note:   no known conversion for argument 1 from ‘const double (*)[2]’ to ‘const Double* {aka const double*}’
BoundTestTypeSupportImpl.cpp: In function ‘bool DDS_3_10_0::OpenDDS::DCPS::operator>>(DDS_3_10_0::OpenDDS::DCPS::Serializer&, Bound::MultiDoubleArray_forany&)’:
BoundTestTypeSupportImpl.cpp:1929:45: error: no matching function for call to ‘DDS_3_10_0::OpenDDS::DCPS::Serializer::read_double_array(double (*&)[2], int)’
   return strm.read_double_array(arr.out(), 4);
                                             ^
In file included from /home/johnny/ACE/OpenDDS/dds/DCPS/Serializer.h:328:0,
                 from /home/johnny/ACE/OpenDDS/dds/DCPS/Definitions.h:14,
                 from BoundTestTypeSupportImpl.h:6,
                 from BoundTestTypeSupportImpl.cpp:2:
/home/johnny/ACE/OpenDDS/dds/DCPS/Serializer.inl:387:1: note: candidate: bool DDS_3_10_0::OpenDDS::DCPS::Serializer::read_double_array(ACE_6_4_1::ACE_CDR::Double*, ACE_6_4_1::ACE_CDR::ULong)
 Serializer::read_double_array(ACE_CDR::Double* x, ACE_CDR::ULong length)
 ^~~~~~~~~~
/home/johnny/ACE/OpenDDS/dds/DCPS/Serializer.inl:387:1: note:   no known conversion for argument 1 from ‘double (*)[2]’ to ‘ACE_6_4_1::ACE_CDR::Double* {aka double*}’
make[1]: *** [/home/johnny/ACE/idl2c++11/ACE/ACE/include/makeinclude/rules.local.GNU:189: .shobj/BoundTestTypeSupportImpl.o] Error 1
make[1]: Leaving directory '/home/johnny/ACE/OpenDDS/tests/DCPS/KeyTest'
make[1]: Entering directory '/home/johnny/ACE/OpenDDS/tests/DCPS/KeyTest'

    * tests/DCPS/Compiler/idl_test3_lib/FooDef.idl:
    * tests/DCPS/Compiler/idl_test3_lib/FooDef2.idl:
    * tests/DCPS/Compiler/idl_test3_lib/FooDef3.idl:
    * tests/DCPS/KeyTest/BoundTest.idl:
@jwillemsen jwillemsen changed the title Extended unit test with a multi dimensional array example, currently failes to compile Extended unit test with multi dimensional array examples, currently failes to compile Feb 14, 2017
@mitza-oci
Copy link
Member

Closing, PR #461 includes these commits as well.

@mitza-oci mitza-oci closed this Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants