1 Apr 2009 02:10
Re: How to generate a Bernuolli number
Barco You <barcojie <at> gmail.com>
2009-04-01 00:10:24 GMT
2009-04-01 00:10:24 GMT
Yes, my function just want to return 0 or 1, so I have the return type as
int, is there any problem for that?
On Tue, Mar 31, 2009 at 4:58 PM, Yaser Zhian <yaserzt <at> yahoo.com> wrote:
> Barco You wrote:
> > This really works. but If I write this in a function:
> > int genB() {
> > ...
> > }
> >
>
> Is your function really supposed to return an "int"?
>
> -yzt
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
--
--
-------------------------------
Enjoy life!
Barco You
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Now I found the
relevant section (12.3.2. Conversion functions) and see that adding 'explicit'
seem to fix all the problems we are now trying to solve with safe_bool. Thanks
for setting me straight. Problem solved then... well, it is being taken care of,
anyway. Sorry for all the noise.
Thanks,
V.
_______________________________________________
Unsubscribe & other changes:
RSS Feed