Skip to content

Commit 9635b13

Browse files
committed
cleanup
1 parent ee71534 commit 9635b13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/rsl/source_location

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ class source_location {
4141
explicit consteval source_location(SourceContext const* data) : _impl_sloc(data) {}
4242

4343
public:
44-
SourceContext const* _impl_sloc = nullptr;
45-
consteval source_location()
46-
: _impl_sloc(make_context<std::meta::access_context::unchecked(), {}>()) {}
44+
// public to avoid violating rules for structural types
45+
SourceContext const* _impl_sloc = make_context<std::meta::access_context::unchecked(), {}>();
46+
consteval source_location() noexcept = default;
4747

4848
consteval static source_location current(
4949
std::source_location sloc = std::source_location::current(),

0 commit comments

Comments
 (0)