Open IAmNotHanni opened 2 years ago
When an InexorException is thrown, we don't store any information about the source location in it.
InexorException
We could use the new C++20 feature std::source_location to store information about the origin of the exception.
Do not use std::source_location at all
std::source_location
all of the code
all operating systems
https://en.cppreference.com/w/cpp/utility/source_location
Ah nice: we can just offer std::source_location::current()) as a default argument and it will tell us in the exception message where the error occured in the code.
std::source_location::current())
Is your feature request related to a problem?
When an
InexorException
is thrown, we don't store any information about the source location in it.Description
We could use the new C++20 feature std::source_location to store information about the origin of the exception.
Alternatives
Do not use
std::source_location
at allAffected Code
all of the code
Operating System
all operating systems
Additional Context
https://en.cppreference.com/w/cpp/utility/source_location