Sorry for my unclearness. But how can I write the line:
bind(&std::pow,constant(-1.0),bind(&IIPrimemap::size,var(primemapvec)));
correctly and thus the program can be complied.
If not so the program can not be complied by Dev-C++ and I am confused about that.
I really want to know how to write the line correctly.
Please give me an example.
Thanks a lot.
在2009-07-02,"Steven Watanabe" <watanabesj@gmail.com> 写道:
>AMDG
>
>fmingu wrote:
>> I do not understand the sentence:
>> Ignore the "conversion to unsigned int" part.
>> As you know, I am a new comer and quite puzzled about that.
>> Does that mean to change the complier enviroment?
>> Can you give me an example?
>>
>
>I meant to say the the compiler's mentioning unsigned int is
>nonsense. That part of the error message is useless. Don't
>pay any attention to it. This part of my previous message is
>not particularly important.
>
>> 在2009-07-02,"Steven Watanabe" <watanabesj@gmail.com> 写道:
>>
>>> fmingu wrote:
>>>> But the complier told me that:
>>>> cannot resolve overloaded function `pow' based on conversion to
>>>> type `unsigned int'
>>>>
>>>>
>>> Ignore the "conversion to unsigned int" part. The compiler
>>> doesn't know how to handle std::pow and gets itself confused.
>>> The problem is &std::pow, not the inner bind expression.
>>>
>
>In Christ,
>Steven Watanabe
>
200万种商品,最低价格,疯狂诱惑你