|
Boost : |
From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2003-06-23 08:24:54
Terje Slettebø wrote:
>>From: "Daniel Frey" <d.frey_at_[hidden]>
>
>>On Sun, 22 Jun 2003 22:01:19 +0200, Terje Slettebø wrote:
>>
>>>Another thing, are the ADD_OPERATOR macro in your code necessary? It
>>>compiles fine without it on Intel C++ 7.1.
>>
>>The GCC doesn't work without the operators, as it doesn't implicitly tries
>>to satisfy float*pi_t by casting pi_t to float to use float*float. I
>>think this is OK as the language can go for two ways:
>>
>>a) define float*float and use a promotion/conversion for, say, float*int.
>>b) define several operators float*float, float*int, ...
>>
>>if it's b), the compiler cannot cast pi_t to float as it doesn't know
>>whether to select float*float or float*int, thus it fails. Maybe a
>>question for the language lawyers over at csc++ to find out what's
>>correct.
>
> It's an odd thing, anyway. Both g++ 3.2 and MSVC 7.1 complains that there's
> no matching operator*.
FYI: I send the question with a minimalistic example to csc++, should
appear there soon. My personal feeling is that GCC/MSVC are correct, but
let's see what happens at csc++...
Regards, Daniel
-- Daniel Frey aixigo AG - financial training, research and technology Schloß-Rahe-Straße 15, 52072 Aachen, Germany fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99 eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk