"Denis Koroskin" <[email protected]> wrote in message news:op.vkfv2p13o7c...@korden-pc... > On Tue, 12 Oct 2010 05:30:27 +0400, Philippe Sigaud > <[email protected]> wrote: > > That could be as simple as: > > struct Bounded(A min, A max, T = A) { ... } >
Better yet,
struct Bounded(A min, B max, T = CommonType!(A, B)) { ... }
