Similar Conversion problem



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/12/2005 at 12:25, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   9.1 
    Platform:   Windows  ; Mac  ;  
    Language(s) :     C++  ;

    ---------
    Hi,

    I switched to MSVC Express edition now and am having problems with Templates.

    For example using the SDK Pow() Template, the compiler always gives me an error that there might be similar conversions.

    For functions I can workaround this using explicit operator calls, but for this? How can this be workarounded or fixed?

    Thanks in advance!

    Compiler Error code:
    \res\noise_functions.h(1339) : error C2666: 'Pow' : 2 overloads have similar conversions
            d:\programme\maxon\9.509\resource\_api\ge_win_math.h(155) : could be 'LReal Pow(LReal,LReal)'
            d:\programme\maxon\9.509\resource\_api\ge_win_math.h(138) : or 'Real Pow(Real,Real)'
            while trying to match the argument list '(double, float)'



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 14/12/2005 at 07:41, xxxxxxxx wrote:

    ok, an explicit cast fixes the problem here too.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 14/12/2005 at 14:12, xxxxxxxx wrote:

    Also note that if you write a constant the type is decided by a suffix. So 2.0 is a double (LReal) and 2.0f is a float (Real).



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 15/12/2005 at 06:40, xxxxxxxx wrote:

    yep :)


Log in to reply