Skip to content

ossie::corba::erase() has extra template parameter #10

@jirwin-geon

Description

@jirwin-geon

The ossie::corba::erase() function in redhawk/src/base/include/ossie/CorbaSequence.h has an extra template parameter that breaks type deduction. In order to invoke the function, the caller must explicilty specify both template parameters (the second is not used and may be specified as void):

ossie::corba::erase<CF::AllocationManager::AllocationRequestSequence,void>(requests, idx);

A better declaration, requiring no changes to the body, would be:

template <typename Sequence>
inline void erase (Sequence& sequence, size_t idx)

Although it is unlikely to be in use in the wild, the old signature can be maintained as a wrapper forwarding to the 1-parameter version.

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