Skip to content

function with constexpr mipp::Reg<float> return is refused #40

@hayguen

Description

@hayguen

trying to create a function with constexpr mipp::Reg<float> return, the compiler refuses with following error message:

/home/ayguen/.local/include/mipp/mipp_object.hxx:23:7: note: ‘mipp::Reg’ is not literal because:
23 | class Reg
| ^~~
/home/ayguen/.local/include/mipp/mipp_object.hxx:23:7: note: ‘mipp::Reg’ has a non-trivial destructor

haven't dived into the sources yet ..
why is there any need for a non-trivial destructor?
is there a simple way to deactivate it?

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