Joel de Guzman | 1 Jul 03:39
Picon
Favicon

Re: _4 in Boost.Lambda ?

Stjepan Rajko wrote:
> On Sun, Jun 29, 2008 at 11:52 PM, Hui Li <huili80 <at> gmail.com> wrote:
>> What is phoenix?
>>
> 
> It is a beautifully designed library offering functionality similar to
> that of Boost.Lambda:

Thanks for the compliment.

> http://spirit.sourceforge.net/dl_docs/phoenix-2/libs/spirit/phoenix/doc/html/index.html

* It has been an auxiliary library of spirit, and as such it's been with
   boost since 2002.
* Obviously, it's very mature
* It will be the basis future lambda:
   - A long time ago, Jaakko and I agreed on a phoenix-lambda merger.
     It's been a long time coming; mostly because I haven't given
     some serious time to really do it -- (Spirit2 took most of my time,
     seconded by Fusion).
   - Eric Niebler just recently successfully ported it to the latest Proto.
     Now is the time to finally do the merger. I'm guessing it will happen
     in 1.37 or 1.38. We'll provide more details after we discuss it with
     Jaakko.

Regards,
--

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net
(Continue reading)

Steven Watanabe | 1 Jul 03:59
Picon

Re: Boost::GIL

AMDG

Martin Fisher wrote:
> I was also getting errors in GIL algorithm.hpp - bad_cast is not a 
> member of std.  I "fixed" this by including boost/cast.hpp - this 
> maybe (most likely) is the wrong way to go ?

The correct header is <typeinfo>.  This has already been fixed in the trunk
http://svn.boost.org/trac/boost/changeset/43565/trunk/boost/gil/algorithm.hpp

In Christ,
Steven Watanabe
David Philp | 1 Jul 04:25
Picon
Picon

python example build newbie problem


Hi

I'm hoping this is a reasonable place to ask the question but please  
point me elsewhere otherwise.

I'm trying and failing to build the Boost Python examples.  In the  
directory
boost-1_35/libs/python/example/tutorial I am running "bjam".  It dies  
with the following errors:
/sw/lib/boost-1_35/tools/build/v2/build/project.jam:266: in find- 
jamfile from module project
error: Unable to load Jamfile.
error: Could not find a Jamfile in directory '../../../..'.
error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2  
[Jj]amfile [Jj]amfile.jam'.

Here's my configuration:
* Intel Mac OS X, 10.5.3
* boost 1.35
* installation is via fink unstable, everything is up to date
* I have made unrelated changes (I think) to site-config.jam, in my  
home directory
* I have put the following into my user-config.jam:
using darwin ;
using python ;

bjam --debug-configuration indicates that python is happily found.

I'm inclined to suspect that the boost fink package is incorrectly or  
(Continue reading)

Vladimir Prus | 1 Jul 05:34

Re: python example build newbie problem

David Philp wrote:

> 
> Hi
> 
> I'm hoping this is a reasonable place to ask the question but please
> point me elsewhere otherwise.
> 
> I'm trying and failing to build the Boost Python examples.  In the
> directory
> boost-1_35/libs/python/example/tutorial I am running "bjam".  It dies
> with the following errors:
> /sw/lib/boost-1_35/tools/build/v2/build/project.jam:266: in find-
> jamfile from module project
> error: Unable to load Jamfile.
> error: Could not find a Jamfile in directory '../../../..'.
> error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2
> [Jj]amfile [Jj]amfile.jam'.
> 
> Here's my configuration:
> * Intel Mac OS X, 10.5.3
> * boost 1.35

Is there a file called "Jamroot" in root directory -- specifically,
in /sw/lib/boost-1_35 directory. If not, this is not a good Boost source
tree.

- Volodya
David Philp | 1 Jul 06:28
Picon
Picon

Re: python example build newbie problem


On 01/07/2008, at 1:34 PM, Vladimir Prus wrote:

> David Philp wrote:
>
>> Hi
>>
>> I'm hoping this is a reasonable place to ask the question but please
>> point me elsewhere otherwise.
>>
>> I'm trying and failing to build the Boost Python examples.  In the
>> directory
>> boost-1_35/libs/python/example/tutorial I am running "bjam".  It dies
>> with the following errors:
>> /sw/lib/boost-1_35/tools/build/v2/build/project.jam:266: in find-
>> jamfile from module project
>> error: Unable to load Jamfile.
>> error: Could not find a Jamfile in directory '../../../..'.
>> error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2
>> [Jj]amfile [Jj]amfile.jam'.
>>
>> Here's my configuration:
>> * Intel Mac OS X, 10.5.3
>> * boost 1.35
>
> Is there a file called "Jamroot" in root directory -- specifically,
> in /sw/lib/boost-1_35 directory. If not, this is not a good Boost  
> source
> tree.

(Continue reading)

Alex Dow | 1 Jul 11:07
Picon

Re: Tips/primers on writing graph adapters

Great, thanks a lot. This looks like what I need. I'll give it a shot.

On Sat, Jun 28, 2008 at 12:27 AM, Dmitry Bufistov <dmitry <at> lsi.upc.edu> wrote:
> Alex Dow wrote:
>>
>> Hello,
>>
>> I'm looking for an online primer or tutorial on writing graph
>> adapters. I read "Converting Existing Graphs to BGL" from the BGL
>> documentation, as well as the docs for several of the existing graph
>> adapters (subgraph, edge_list), but I'm still not getting it. Any
>> leads would be helpful.
>>
>> Thanks!
>
> Hi, Alex,
>
> Here I've tried to implement Daves idea.
> Works more or less for me. Please, try it out.
>
> The alternative approach would be to define
> "TetminatorFunction(Vertex u, const Graph& g)"
>
> in the way it returns true when the depth of the search
> is greater than some predefined constant. It can easily be done via global
> variables. However, I'm sure there is a better way to do it.
>
> Regards,
> Sr. Dmitry
>
(Continue reading)

Thorsten Ottosen | 1 Jul 11:25

Re: [BULK] Re: Using std::bitset with boost::assign::assign_map_list_of

Sean Farrow skrev:
> Hi: 
> I'll check this tommoro, if this works is the msb the first bit, i.e in
> the first example 1?
> So if I wanted to set a 6-bit bitset to 1 it would be 000001
> I don't want to have to go through, printing all 63 values if I can help
> it!
>

then use ints instead of strings to construct the bitset.

-Thorsten
Sean Farrow | 1 Jul 11:37
Picon

Re: [BULK] Re: Using std::bitset withboost::assign::assign_map_list_of

Hi: 
Ok, how do I calculate the integers to use, is it binary--I assume soso
for example if I wanted bits 1 and 6 set the integer would be 65, if I'm
wrong please get me on the straight and narrow!
Sean.

-----Original Message-----
From: boost-users-bounces <at> lists.boost.org
[mailto:boost-users-bounces <at> lists.boost.org] On Behalf Of Thorsten
Ottosen
Sent: 01 July 2008 10:26
To: boost-users <at> lists.boost.org
Subject: Re: [Boost-users] [BULK] Re: Using std::bitset
withboost::assign::assign_map_list_of

Sean Farrow skrev:
> Hi: 
> I'll check this tommoro, if this works is the msb the first bit, i.e 
> in the first example 1?
> So if I wanted to set a 6-bit bitset to 1 it would be 000001 I don't 
> want to have to go through, printing all 63 values if I can help it!
>

then use ints instead of strings to construct the bitset.

-Thorsten
_______________________________________________
Boost-users mailing list
Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
(Continue reading)

David Abrahams | 1 Jul 12:22
Picon
Picon
Favicon
Gravatar

Re: python example build newbie problem

David Philp wrote:
> 
> On 01/07/2008, at 1:34 PM, Vladimir Prus wrote:
> 
>> Is there a file called "Jamroot" in root directory -- specifically,
>> in /sw/lib/boost-1_35 directory. If not, this is not a good Boost source
>> tree.
> 
> There is not, though there is a Jamroot in the tutorial directory. 
> (There is a boost-build.jam in the root directory.  I thought might be
> equivalent, but soft-linking Jamfile or Jamroot -> boost-build.jam does
> not help.)  Thanks.
> 
> The rest of boost (well, a few bits I've used here and there) seem to
> work, though, i.e. boost has built and installed into /sw.  I've had no
> trouble with the unit test, program options, or threads frameworks from
> boost.
> 
> It may be that the fink package maintainer did not intend to install a
> Boost source tree.  Does it follow that the examples will be broken but
> the installation might be otherwise correct?  

It might be.

> Or do I need to fix this
> before I can use Boost Python?
> 
> (My first attempt to use Boost Python doesn't work but that isn't
> surprising.)

(Continue reading)

Johan Råde | 1 Jul 14:24
Picon
Picon

Re: 1_36 serialization... another issue...


> It seems very worrying that 1.35 users are going to be deliberately broken
> to help out <= 1.34.1 users who were broken accidentally. Is there really no
> plan to help out users load their 1.35 files in 1.36? Even if this can't be
> rectified within the library through a workaround, maybe a more independent
> (standalone?) utility could be provided? I have no familiarity with the
> internals of the library but if there is some way I can help in this regard,
> I'd be happy to try.
> 
> Pete Bartlett

How about a boost/serialization/vector_135.hpp header,
analogous to the boost/serialization/shared_ptr_132.hpp header?

--Johan

Gmane