forked from boostorg/array
Add operator<=> overload for zero-sized arrays
This commit is contained in:
1 parent
329e59454f
commit
68db6ebd2d
2 files changed
+9
-2
No files matched your search
@@ -396,6 +396,13 @@ namespace boost {
|
||||
return 0 <=> 0; // std::strong_ordering::equal
|
||||
}
|
||||
|
||||
template<class T>
|
||||
constexpr auto operator<=> (const array<T,0>& x, const array<T,0>& y)
|
||||
-> decltype( 0 <=> 0 )
|
||||
{
|
||||
return 0 <=> 0; // std::strong_ordering::equal
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
// undocumented and obsolete
|
||||
|
||||
Reference in new issue
Block a user