Skip to content

Commit 291ddf1

Browse files
committed
Remove incorrect unnamed namespace that was needed to work around old versions of clang
1 parent 1a68db0 commit 291ddf1

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

source/bounded/arithmetic/modulus.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import std_module;
2121

2222
namespace bounded {
2323

24-
namespace {
25-
2624
using smax_t = numeric_traits::max_signed_t;
2725
using umax_t = numeric_traits::max_unsigned_t;
2826

@@ -79,8 +77,6 @@ constexpr auto sign_free_value = [](auto const dividend, auto divisor) -> min_ma
7977
return current;
8078
};
8179

82-
} // namespace
83-
8480
constexpr auto modulus_operator_range(auto const lhs, auto const rhs) {
8581
// The sign of the result is equal to the sign of the lhs. The sign of the
8682
// rhs does not matter. Therefore, we use the absolute value of the rhs; we

source/tv/test/optional.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,10 @@ constexpr auto test_optional_traits() {
4949
return true;
5050
}
5151

52-
namespace {
53-
5452
struct S {
5553
int member;
5654
};
5755

58-
} // namespace
59-
6056
static_assert(test_optional_traits<int>());
6157
static_assert(test_optional_traits<bounded::integer<0, 10>>());
6258
static_assert(test_optional_traits<decltype(bounded::integer(0))>());

0 commit comments

Comments
 (0)