Commit 6e2568d 1 parent 0c46d6c commit 6e2568d Copy full SHA for 6e2568d
File tree 1 file changed +5
-6
lines changed
projects/core/include/tempest
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
#include < tempest/int.hpp>
5
5
6
- // Check for GLIBCXX or LIBCPP
7
- #if ((defined(__GLIBCXX__) && !defined(_GLIBCXX_SRCLOC)) || \
8
- (defined(_LIBCPP_VERSION) && !defined(_LIBCPP_SOURCE_LOCATION))) && \
9
- (defined(__GNUC__) || defined(__clang__))
6
+ // If (GNUC or CLANG) and not (_GLIBCXX_SRCLOC or _LIBCPP_SOURCE_LOCATION) OR SELF_HOSTED
7
+ #if (defined(__GNUC__) || defined(__clang__)) && !defined(_GLIBCXX_SRCLOC) && !defined(_LIBCPP_SOURCE_LOCATION) || \
8
+ defined (__STDC_HOSTED__)
10
9
11
10
// Known UB. If libstdc++ or libc++ changes the layout of std::source_location::__impl, this will break
12
11
// TODO: Investigate a robust way to test for this. Maybe C++26 static reflection will provide a solution.
@@ -37,12 +36,12 @@ namespace std
37
36
return _impl->_M_function_name ;
38
37
}
39
38
40
- constexpr size_t line () const noexcept
39
+ constexpr unsigned line () const noexcept
41
40
{
42
41
return _impl->_M_line ;
43
42
}
44
43
45
- constexpr size_t column () const noexcept
44
+ constexpr unsigned column () const noexcept
46
45
{
47
46
return _impl->_M_column ;
48
47
}
You can’t perform that action at this time.
0 commit comments