Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement value printing for std::source_location #14211

Closed
Axel-Naumann opened this issue Dec 11, 2023 · 1 comment · Fixed by #14218
Closed

Implement value printing for std::source_location #14211

Axel-Naumann opened this issue Dec 11, 2023 · 1 comment · Fixed by #14218

Comments

@Axel-Naumann
Copy link
Member

Axel-Naumann commented Dec 11, 2023

Feature description

It'd be great to have std::source_location::current() print out more than (std::source_location) @0x...! Just needs a cling::printValue(const std::source_location *) overload.

Alternatives considered

No response

Additional context

No response

@devajithvs
Copy link
Contributor

std::source_location was under the namespace experimental until recently. To use it under std:: namespace will require C++20

https://en.cppreference.com/w/cpp/utility/source_location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants