Skip to content

Function inlay hints don't work with std::string_literal arguments #10078

Description

Use C++ code

#include <string>
using namespace std::string_literals;

void foo_i(int ii);
void foo_s(std::string aa);

int main()
{
    foo_i(10); // inlay hints work
    foo_s("s"s); // inlay hints don't work
}

Bug: Inlay hints don’t work for the function that takes a string_literal argument – with Debug bits several assertions are thrown.

image

Filed a VS bug at https://developercommunity.visualstudio.com/t/C-IntelliSense-function-inlay-hints-do/10184988 .

Metadata

Metadata

Labels

Feature: Inlay HintAn issue related to inlay hints for declarations and parameters.Language ServiceVisual StudioInherited from Visual StudiobugfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions