Boost logo

Ublas :

Subject: Re: [ublas] enable complex @ int
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2009-09-30 08:21:29


Gunter Winkler wrote:

> Am Tuesday 29 September 2009 schrieb Neal Becker:
>> There is one problem with that more generic version, if you use
>> std::complex<int> you will get a conflict:
>
> Maybe this can be solved using enable_if in the return type. But, is
> std::complex<int> of any use? I'd put these overloads in a separate
> header and leave the decision whether it is included to the developer.
>
> What do you think?

I've used it for signal processing work. It is convenient when moving from
a floating point algorithm to a 'fixed pt' (integer) version.