Changeset 71f3d45


Ignore:
Timestamp:
Nov 27, 2024, 5:01:26 PM (3 weeks ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
f5e37a4
Parents:
108b2c7
Message:

Remove unnecessary assertion: printing a rational doesn't require the component type to be arithmetic.

May help (tbd) effort to move enum.hfa to builtins.

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/rational.cfa

    r108b2c7 r71f3d45  
    201201                return is;
    202202        } // ?|?
    203 
     203} // distribution
     204
     205forall( T ) {
    204206        forall( ostype & | ostream( ostype ) | { ostype & ?|?( ostype &, T ); } ) {
    205207        ostype & ?|?( ostype & os, rational(T) r ) {
  • libcfa/src/rational.hfa

    r108b2c7 r71f3d45  
    7777        forall( istype & | istream( istype ) | { istype & ?|?( istype &, T & ); } )
    7878        istype & ?|?( istype &, rational(T) & );
     79} // distribution
    7980
     81forall( T ) {
    8082        forall( ostype & | ostream( ostype ) | { ostype & ?|?( ostype &, T ); } ) {
    8183                ostype & ?|?( ostype &, rational(T) );
Note: See TracChangeset for help on using the changeset viewer.