@@ -705,16 +705,14 @@ class Array;
705
705
/* * Return the memory representation of this floating point number as a byte \
706
706
* array in big-endian (network) byte order. \
707
707
*/ \
708
- template <std::same_as<::sus::containers::Array<u8 , Bytes>> Array = \
709
- ::sus::containers::Array<u8 , Bytes>> \
708
+ template <int &..., class Array = ::sus::containers::Array<u8 , Bytes>> \
710
709
constexpr Array to_be_bytes () const & noexcept { \
711
710
return to_bits ().to_be_bytes (); \
712
711
} \
713
712
/* * Return the memory representation of this floating point number as a byte \
714
713
* array in little-endian byte order. \
715
714
*/ \
716
- template <std::same_as<::sus::containers::Array<u8 , Bytes>> Array = \
717
- ::sus::containers::Array<u8 , Bytes>> \
715
+ template <int &..., class Array = ::sus::containers::Array<u8 , Bytes>> \
718
716
constexpr Array to_le_bytes () const & noexcept { \
719
717
return to_bits ().to_le_bytes (); \
720
718
} \
@@ -724,8 +722,7 @@ class Array;
724
722
* As the target platform's native endianness is used, portable code should \
725
723
* use `to_be_bytes()` or `to_le_bytes()`, as appropriate, instead. \
726
724
*/ \
727
- template <std::same_as<::sus::containers::Array<u8 , Bytes>> Array = \
728
- ::sus::containers::Array<u8 , Bytes>> \
725
+ template <int &..., class Array = ::sus::containers::Array<u8 , Bytes>> \
729
726
constexpr Array to_ne_bytes () const & noexcept { \
730
727
return to_bits ().to_ne_bytes (); \
731
728
} \
@@ -734,8 +731,7 @@ class Array;
734
731
* \
735
732
* See `##T##::from_bits()` for why this function is not constexpr. \
736
733
*/ \
737
- template <std::same_as<::sus::containers::Array<u8 , Bytes>> Array = \
738
- ::sus::containers::Array<u8 , Bytes>> \
734
+ template <int &..., class Array = ::sus::containers::Array<u8 , Bytes>> \
739
735
static T from_be_bytes (const Array& bytes) noexcept { \
740
736
return T::from_bits (UnsignedIntT::from_be_bytes (bytes)); \
741
737
} \
@@ -744,8 +740,7 @@ class Array;
744
740
* \
745
741
* See `##T##::from_bits()` for why this function is not constexpr. \
746
742
*/ \
747
- template <std::same_as<::sus::containers::Array<u8 , Bytes>> Array = \
748
- ::sus::containers::Array<u8 , Bytes>> \
743
+ template <int &..., class Array = ::sus::containers::Array<u8 , Bytes>> \
749
744
static T from_le_bytes (const Array& bytes) noexcept { \
750
745
return T::from_bits (UnsignedIntT::from_le_bytes (bytes)); \
751
746
} \
@@ -758,8 +753,7 @@ class Array;
758
753
* \
759
754
* See `##T##::from_bits()` for why this function is not constexpr. \
760
755
*/ \
761
- template <std::same_as<::sus::containers::Array<u8 , Bytes>> Array = \
762
- ::sus::containers::Array<u8 , Bytes>> \
756
+ template <int &..., class Array = ::sus::containers::Array<u8 , Bytes>> \
763
757
static T from_ne_bytes (const Array& bytes) noexcept { \
764
758
return T::from_bits (UnsignedIntT::from_ne_bytes (bytes)); \
765
759
}
0 commit comments