|
Boost : |
From: Bronek Kozicki (brok_at_[hidden])
Date: 2006-05-29 17:35:16
Maarten Kronenburg wrote:
> What do you mean with "modulus version"?
> When the modulus is a constructor
modulus could be template parameter. In this case
1 - there is no static state (which complicates things a lot in multithreaded
programs)
2 - number with different modulus are in fact distinct types
3 - if there is any kind of operation that can be performed between such
distinct types, it can be safely defined in the interface, together with
appropriate compile-time checking
B.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk