| The part about 2 overloads having similar conversions could apply to
function overloading as well as to operator overloading, so you have to look
at the exact text of the error message and see what overloads are in
question. Usually, you can use a type cast to resolve the expression to the
desired overload.
The multi-threaded libraries are slightly less efficient, in theory, than
the single-threaded libraries. However, I always use the multi-threaded
libraries because sometimes I link my Csound code into multi-threaded
systems, and have encountered no ill effects from doing so.
-----Original Message-----
From: Ricardo MadGello
To: Csound mailing list
Date: Sunday, January 17, 1999 11:11 PM
Subject: Macros and operator overload
>Michael Gogins wrote the following snippet
>--
>What is wrong with macros is:
>:snip
>For example, in C++, I tend to avoid operator overloading, use only simple
>exception handling, and use regular "for" loops for iterators rather than
>creating special iterator classes.
>:snip
>------------------
>
>Is this what is causing the following message when I try to compile Csound
>Canonical sources with VC++ 5?
>------
>:snip
>CWIN.CPP
>E:\Csound\CWIN.CPP(3807) : error C2666: '!=' : 2 overloads have similar
>conversions
>:snip
>Error executing cl.exe.
>winsound.exe - 1 error(s), 0 warning(s)
>------
>
>All I'm trying to do is recompile for Pentium Pro optimized executable with
>no source changes. This message shows when I simply bring the 3.50
>WinSound.MSW into visual studio and hit "rebuild all", also.
>
>----------------
>Along another line, is there anything added or taken away when using the
>Multi-Threaded libraries for this?
>
>
>Sorry if this is a stupid question, just getting started here. If this
>and/or the answer is off-topic for Csound list, send private.
>
>
>Thanks,
>Ricardo MadGello
>madgello@oz.net
>
>
>
>
>-----Original Message-----
>From: owner-csound-outgoing@maths.ex.ac.uk
>[mailto:owner-csound-outgoing@maths.ex.ac.uk]On Behalf Of Michael Gogins
>Sent: Sunday, January 17, 1999 7:03 PM
>To: J P Fitch; Nicola Bernardini
>Cc: Csound mailing list
>Subject: Re: b (ignore first)
>
>
>What is wrong with macros is:
>
>:snip
>
>For example, in C++, I tend to avoid operator overloading, use only simple
>exception handling, and use regular "for" loops for iterators rather than
>creating special iterator classes.
>
>:snip
> |