Re: [C++-sig] strange behavior with respect to numeric and Boolean overloads

2009-03-16 Thread Roman Yakovenko
On Mon, Mar 16, 2009 at 8:30 PM, Matthew Scouten (TT) wrote: > I read the linked page, but this still feels like a bug to me. Or at least a > wart. Like I said, the order sensitivity I can live with, because that only > effects me. But the int vs bool problem is really obnoxious. C++ can tell an

Re: [C++-sig] Problem with bjam quickstart

2009-03-16 Thread Rene Rivera
Gabriel Joel Perez wrote: Hi! I'm getting problems with running the basic demo that is described in the bjam quickstart guide http://www.boost.org/doc/libs/1_38_0/libs/python/doc/building.html I have the following bjam version: boost-jam-3.1.17-1-linuxx86/ and I'm running Ubuntu 8.04 Hardy Heron

[C++-sig] Problem with bjam quickstart

2009-03-16 Thread Gabriel Joel Perez
Hi! I'm getting problems with running the basic demo that is described in the bjam quickstart guide http://www.boost.org/doc/libs/1_38_0/libs/python/doc/building.html I have the following bjam version: boost-jam-3.1.17-1-linuxx86/ and I'm running Ubuntu 8.04 Hardy Heron and I have libboost-python

Re: [C++-sig] strange behavior with respect to numeric and Boolean overloads

2009-03-16 Thread Ralf W. Grosse-Kunstleve
> I read the linked page, but this still feels like a bug to me. Or at least a > wart. I agree. Boost.Python 2 was written when the Python bool type still really was an int (Python 2.2). I'm not sure what it would take to retro-fit Boost.Python, but probably it is doable for a motivated volunt

Re: [C++-sig] strange behavior with respect to numeric and Boolean overloads

2009-03-16 Thread Matthew Scouten (TT)
I read the linked page, but this still feels like a bug to me. Or at least a wart. Like I said, the order sensitivity I can live with, because that only effects me. But the int vs bool problem is really obnoxious. C++ can tell an int from a bool, Python can tell an int from a bool, but library b

Re: [C++-sig] strange behavior with respect to numeric and Boolean overloads

2009-03-16 Thread Roman Yakovenko
2009/3/16 Matthew Scouten (TT) : > So here is some strange behavior I ran across with BP. A take a look at this > example code: > > > > busybox.cpp: > > > > #include "stdafx.h" > > > > std::string foo_int   (int    arg) { return std::string("foo(int) > Called"); } > > std::string foo_double(double

[C++-sig] strange behavior with respect to numeric and Boolean overloads

2009-03-16 Thread Matthew Scouten (TT)
So here is some strange behavior I ran across with BP. A take a look at this example code: busybox.cpp: #include "stdafx.h" std::string foo_int (intarg) { return std::string("foo(int) Called"); } std::string foo_double(double arg) { return std::string("foo(double) Called"); } s