Boost logo

Boost :

From: Kevlin Henney (Kevlin.Henney_at_[hidden])
Date: 1999-12-06 07:00:07


It seems that there is a case to be made both for and against automatic
normalisation. Looking at it from a quality of service point of view, there
is a case to be made for accommodating both. This could be done either at
runtime or, preferably, at compile time, with the default -- looking at the
responses on the list so far -- being to always normalise:

   template<typename Int, bool normalize = true>
   class rational
   {
       ...
   };

Thoughts?

Kevlin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk