xo-ratio: deal: gcc+clang both require pub members...

This commit is contained in:
Roland Conybeare 2024-04-27 11:55:32 -04:00
commit 8d4becef2b

View file

@ -326,16 +326,7 @@ namespace xo {
return lhs <=> rhs;
}
/* we want ratio<T> to be a structural type,
* so that we can use an instance as a non-type template parameter.
*
* with private members, clang 18 (we believe incorrectly) complains that ratio<T> is not structural.
*/
#ifdef __clang__
public:
#else
private:
#endif
public: /* need public members so that a ratio instance can be a non-type template parameter (a structural type) */
/** @defgroup ratio-instance-variables **/
///@{