Skip to content

Template instantiation () handling issue #1

@noboruma

Description

@noboruma

For some reason, the following code:
template<typename T> T foo() {return T(42); } int a = foo<int>();
produces:
return int42;
I would have expected return int(42)?
Using {} works fine, but () concatenate the type and the value somehow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions