Skip to content

[BUG] current "exploration" of not allowing default arguments breaks pure mode for functions wanting to use std::source_location #1189

Closed
@farmerpiki

Description

@farmerpiki

Just a sample cpp1 function that can no longer be represented in cpp2 syntax due to lack of default arguments.
If I'm wrong about this and there's a way around this please reply and close the bug, thanks!

void debug_function_name(char const *fn = std::source_location::current().function_name())
{
std::println(stderr, "calling: {}", fn);
}

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