Skip to content

Commit b896e5d

Browse files
authored
Merge pull request #2135 from IntelPython/remove-anonymous-namespaces-from-headers
Remove remaining anonymous namespaces from headers
2 parents c76f67e + 30b35ba commit b896e5d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

dpctl/memory/_opaque_smart_ptr.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include <exception>
4040
#include <iostream>
4141

42-
namespace
42+
namespace detail
4343
{
4444

4545
class USMDeleter
@@ -65,11 +65,11 @@ class USMDeleter
6565
::sycl::context _context;
6666
};
6767

68-
} // end of anonymous namespace
68+
} // namespace detail
6969

7070
void *OpaqueSmartPtr_Make(void *usm_ptr, const sycl::queue &q)
7171
{
72-
USMDeleter _deleter(q);
72+
detail::USMDeleter _deleter(q);
7373
auto sptr = new std::shared_ptr<void>(usm_ptr, std::move(_deleter));
7474

7575
return reinterpret_cast<void *>(sptr);

dpctl/tensor/libtensor/source/sorting/rich_comparisons.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace tensor
3434
namespace py_internal
3535
{
3636

37-
namespace
37+
namespace detail
3838
{
3939
template <typename fpT> struct ExtendedRealFPLess
4040
{
@@ -103,30 +103,30 @@ inline constexpr bool is_fp_v =
103103
(std::is_same_v<T, sycl::half> || std::is_same_v<T, float> ||
104104
std::is_same_v<T, double>);
105105

106-
} // end of anonymous namespace
106+
} // end of namespace detail
107107

108108
template <typename argTy> struct AscendingSorter
109109
{
110-
using type = std::conditional_t<is_fp_v<argTy>,
111-
ExtendedRealFPLess<argTy>,
110+
using type = std::conditional_t<detail::is_fp_v<argTy>,
111+
detail::ExtendedRealFPLess<argTy>,
112112
std::less<argTy>>;
113113
};
114114

115115
template <typename T> struct AscendingSorter<std::complex<T>>
116116
{
117-
using type = ExtendedComplexFPLess<std::complex<T>>;
117+
using type = detail::ExtendedComplexFPLess<std::complex<T>>;
118118
};
119119

120120
template <typename argTy> struct DescendingSorter
121121
{
122-
using type = std::conditional_t<is_fp_v<argTy>,
123-
ExtendedRealFPGreater<argTy>,
122+
using type = std::conditional_t<detail::is_fp_v<argTy>,
123+
detail::ExtendedRealFPGreater<argTy>,
124124
std::greater<argTy>>;
125125
};
126126

127127
template <typename T> struct DescendingSorter<std::complex<T>>
128128
{
129-
using type = ExtendedComplexFPGreater<std::complex<T>>;
129+
using type = detail::ExtendedComplexFPGreater<std::complex<T>>;
130130
};
131131

132132
} // end of namespace py_internal

0 commit comments

Comments
 (0)