Change file_name() and function_name() for source_location() to return '' instead of '(unknown)'

This commit is contained in:
Peter Dimov committed 2022-02-03 06:56:39 +02:00
1 parent 65068b2b9a
commit 0e99024312
5 files changed
+13 -11

No files matched your search

+5
View File
@@ -10,6 +10,11 @@ http://www.boost.org/LICENSE_1_0.txt
:toc-title:
:idprefix:
## Changes in 1.79.0
* `source_location().file_name()` and `source_location().function_name()`
now return `""` instead of `"(unknown)"`.
## Changes in 1.78.0
* Added `source_location::to_string`.
+1 -2
View File
@@ -57,8 +57,7 @@ constexpr source_location() noexcept;
```
Effects: :: Constructs a `source_location` object for which `file_name()`
and `function_name()` return `"(unknown)"`, and `line()` and `column()`
return `0`.
and `function_name()` return `""`, and `line()` and `column()` return `0`.
```
constexpr source_location(char const* file, uint_least32_t line,