mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Updates to CI scripts
This commit is contained in:
parent
04b3892509
commit
6872131920
@ -54,27 +54,6 @@ SOFTWARE.
|
||||
|
||||
namespace etl
|
||||
{
|
||||
#if ETL_USING_STL && ETL_USING_CPP20
|
||||
//*****************************************************************************
|
||||
/// Obtain the address represented by p without forming a reference to the object pointed to by p.
|
||||
/// Defined when using the STL and C++20
|
||||
//*****************************************************************************
|
||||
template <typename TPtr>
|
||||
constexpr auto to_address(const TPtr& p) noexcept
|
||||
{
|
||||
return std::to_address(p);
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
/// Obtain the address represented by p without forming a reference to the object pointed to by p.
|
||||
/// Defined when using the STL and C++20
|
||||
//*****************************************************************************
|
||||
template <typename T>
|
||||
constexpr T* to_address(T* p) noexcept
|
||||
{
|
||||
return std::to_address(p);
|
||||
}
|
||||
#else
|
||||
//*****************************************************************************
|
||||
/// Obtain the address represented by p without forming a reference to the object pointed to by p.
|
||||
/// Defined when not using the STL or C++20
|
||||
@ -95,7 +74,6 @@ namespace etl
|
||||
{
|
||||
return itr.operator->();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ETL_USING_STL
|
||||
//*****************************************************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user