Skip to content

Better assertions with std::source_location #627

@adriengivry

Description

@adriengivry

Problem this feature should fix

Our assertions aren't very descriptive, and are relying on LINE and FILE macros.

Expected solution

Since C++20 it's now possible to use std::source_location to retrieve information above the current source file. This could be used to make our assertions more descriptive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueAn easy issue for new contributorsQoLQuality of Life : Something that can improve users productivity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions