xo-ratio: deal: gcc+clang both require pub members...
This commit is contained in:
parent
781f393f91
commit
8d4becef2b
1 changed files with 1 additions and 10 deletions
|
|
@ -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 **/
|
||||
///@{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue