Skip to content

to use 3.2.14 or master code to generate code, when compile XXXSomeIPStubAdapter.cpp it says compiling error #51

@biggoldenbee

Description

@biggoldenbee

when use 3.2.14 or master code to generate code, when compile XXXSomeIPStubAdapter.cpp it says compiling error, as below:

/home/v2x/workspace/joynext/jvs-oi/fidl/src-gen/v1/commonapi/v2x/V2XStackServiceSomeIPStubAdapter.cpp:33:106: required from here

*_/usr/include/c++/11/ext/new_allocator.h:162:11: error: no matching function for call to ‘CommonAPI::SomeIP::ClientId::ClientId()’
162 | { ::new((void )__p) _Up(std::forward<Args>(__args)...); }

and compared the FInterfaceSomeIPStubAdapterGenerator.xtend of 3.2.0 with the FInterfaceSomeIPStubAdapterGenerator.xtend of 3.2.14 or master, the code is difference:

line 196 of the FInterfaceSomeIPStubAdapterGenerator.xtend of 3.2.0 is
std::shared_ptr<CommonAPI::SomeIP::ClientId> itsClient = std::make_shared<CommonAPI::SomeIP::ClientId>(0xFFFF, 0xFFFFFFFF, 0xFFFFFFFF);

but line 196 of the FInterfaceSomeIPStubAdapterGenerator.xtend of 3.2.0 and master is
std::shared_ptr<CommonAPI::SomeIP::ClientId> itsClient = std::make_shared<CommonAPI::SomeIP::ClientId>();

So, I think this is an potential issue of the SomeIP generate tool

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions