Skip to content

[source_loc] support for owning strings #2867

Closed
@timblechmann

Description

@timblechmann

source_loc does not own the strings for file name and function name. this is a perfectly reasonable default in most use cases where this information is filled by the preprocessor.

however i'm running into a funny situation when trying to re-direct qt's logging to spdlog and using multithreaded logging:


i've been meditating a bit about this. it's a bit of an edge case, but it would be great if spdlog could provide a second api similar to source_loc, that uses owning std::string to allow applications to fill a source_loc from source locations other than c/c++

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions