We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee71534 commit 9635b13Copy full SHA for 9635b13
include/rsl/source_location
@@ -41,9 +41,9 @@ class source_location {
41
explicit consteval source_location(SourceContext const* data) : _impl_sloc(data) {}
42
43
public:
44
- SourceContext const* _impl_sloc = nullptr;
45
- consteval source_location()
46
- : _impl_sloc(make_context<std::meta::access_context::unchecked(), {}>()) {}
+ // public to avoid violating rules for structural types
+ SourceContext const* _impl_sloc = make_context<std::meta::access_context::unchecked(), {}>();
+ consteval source_location() noexcept = default;
47
48
consteval static source_location current(
49
std::source_location sloc = std::source_location::current(),
0 commit comments