Skip to content

Commit 6872131

Browse files
committed
Updates to CI scripts
1 parent 04b3892 commit 6872131

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

include/etl/memory.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,6 @@ SOFTWARE.
5454

5555
namespace etl
5656
{
57-
#if ETL_USING_STL && ETL_USING_CPP20
58-
//*****************************************************************************
59-
/// Obtain the address represented by p without forming a reference to the object pointed to by p.
60-
/// Defined when using the STL and C++20
61-
//*****************************************************************************
62-
template <typename TPtr>
63-
constexpr auto to_address(const TPtr& p) noexcept
64-
{
65-
return std::to_address(p);
66-
}
67-
68-
//*****************************************************************************
69-
/// Obtain the address represented by p without forming a reference to the object pointed to by p.
70-
/// Defined when using the STL and C++20
71-
//*****************************************************************************
72-
template <typename T>
73-
constexpr T* to_address(T* p) noexcept
74-
{
75-
return std::to_address(p);
76-
}
77-
#else
7857
//*****************************************************************************
7958
/// Obtain the address represented by p without forming a reference to the object pointed to by p.
8059
/// Defined when not using the STL or C++20
@@ -95,7 +74,6 @@ namespace etl
9574
{
9675
return itr.operator->();
9776
}
98-
#endif
9977

10078
#if ETL_USING_STL
10179
//*****************************************************************************

0 commit comments

Comments
 (0)