FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

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

Description

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);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL