Skip to content

Commit b311f59

Browse files
committed
fix typo
1 parent 4ecae59 commit b311f59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/rsl/assert

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ constexpr std::string format_sloc(std::source_location sloc) {
3232

3333
template <typename T>
3434
requires std::convertible_to<T const&, std::string_view>
35-
consteval void compile_error(T const& message) {
35+
consteval void compile_error(T const& message, std::source_location sloc = std::source_location::current()) {
3636
auto diagnostic = '\n' + _error_impl::format_sloc(sloc) + ": error: " + message;
3737
auto compile_error =
3838
substitute(^^_error_impl::error, {std::meta::reflect_constant_string(diagnostic)});

0 commit comments

Comments
 (0)