Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-10-30 18:01:38 +0100
committerMartin Hořeňovský2019-10-30 18:01:38 +0100
commitca4c6218d418fe38571e67a1c60453bb2ab26fe7 (patch)
treedb1412a30f659882931d6dc7ae803d0717abb461 /include
parentac4958395c651ff90a63a3a32c45d7cb46b41d86 (diff)
downloadcatch3-ca4c6218d418fe38571e67a1c60453bb2ab26fe7.tar.gz
Remove SourceLineInfo::empty()
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_common.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/internal/catch_common.h b/include/internal/catch_common.h
index 5e097fbf..b4ca1c12 100644
--- a/include/internal/catch_common.h
+++ b/include/internal/catch_common.h
@@ -47,8 +47,8 @@ namespace Catch {
struct SourceLineInfo {
SourceLineInfo() = delete;
- SourceLineInfo( char const* _file, std::size_t _line ) noexcept
- : file( _file ),
+ constexpr SourceLineInfo( char const* _file, std::size_t _line ) noexcept:
+ file( _file ),
line( _line )
{}
@@ -57,7 +57,6 @@ namespace Catch {
SourceLineInfo( SourceLineInfo&& ) noexcept = default;
SourceLineInfo& operator = ( SourceLineInfo&& ) noexcept = default;
- bool empty() const noexcept { return file[0] == '\0'; }
bool operator == ( SourceLineInfo const& other ) const noexcept;
bool operator < ( SourceLineInfo const& other ) const noexcept;