Skip to content

Function template arguments are not shown #501

@leg0

Description

@leg0

Given this code:

#include <utility>
static int s1;
static int s2;
std::pair<int const&, int const&> fun() { return std::make_pair(s1, s2);
}

The output is

#include <utility>

static int s1;
static int s2;

std::pair<const int &, const int &> fun()
{
  return std::pair<const int &, const int &>(std::make_pair(s1, s2));
}

But I expected to see:

#include <utility>

static int s1;
static int s2;

std::pair<const int &, const int &> fun()
{
  return std::pair<const int &, const int &>(std::make_pair<int, int>(s1, s2));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions