<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-14206</id>
	<title>Nabble - Boost - Users</title>
	<updated>2009-11-11T03:08:30Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Boost---Users-f14206.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Boost---Users-f14206.html" />
	<subtitle type="html">Boost Users mailing list</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26299593</id>
	<title>Re: [test] Linking against boost_unit_test_framework causes double-deletion in std::ostringstream</title>
	<published>2009-11-11T03:08:30Z</published>
	<updated>2009-11-11T03:08:30Z</updated>
	<author>
		<name>Alastair Rankine-3</name>
	</author>
	<content type="html">On 2009-11-10 23:48:49 +1100, Roman Perepelitsa 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26299593&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;roman.perepelitsa@...&lt;/a&gt;&amp;gt; said:
&lt;br&gt;&lt;br&gt;&amp;gt; As far as I remember, boost_unit_test_framework defines main function.
&lt;br&gt;&amp;gt; Having two main functions in the same application might be what's causing
&lt;br&gt;&amp;gt; your problems. Another possibility is that the library and the program are
&lt;br&gt;&amp;gt; compiled with different standard libraries.
&lt;br&gt;&lt;br&gt;Good thoughts, but:
&lt;br&gt;&lt;br&gt;1. Boost Test does not define main unless you tell it to, and that's 
&lt;br&gt;only in a header. The library itself doesn't contain main:
&lt;br&gt;&lt;br&gt;% nm /opt/local/lib/libboost_unit_test_framework-mt-d.dylib |c++filt|grep main
&lt;br&gt;00000000000759e6 T boost::runtime::cla::argv_traverser::remainder(int&amp;, char**)
&lt;br&gt;000000000002e26a T boost::unit_test::unit_test_main(bool (*)(), int, char**)
&lt;br&gt;0000000000136670 S typeinfo for std::domain_error
&lt;br&gt;00000000000b2a0a S typeinfo name for std::domain_error
&lt;br&gt;%
&lt;br&gt;&lt;br&gt;2. I compiled the library myself, or at least MacPorts did, using the 
&lt;br&gt;same standard library.
&lt;br&gt;&lt;br&gt;I'm pretty sure it's caused by the unit test library doing something 
&lt;br&gt;dodgy at static initialisation time. Though I don't know exactly what...
&lt;br&gt;&lt;br&gt;Mainly I'm interested in whether anyone else can replicate this problem.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26299593&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-test--Linking-against-boost_unit_test_framework-causes-double-deletion-in-std%3A%3Aostringstream-tp26281497p26299593.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26299535</id>
	<title>doubt on lambda expression</title>
	<published>2009-11-11T03:04:49Z</published>
	<updated>2009-11-11T03:04:49Z</updated>
	<author>
		<name>manustone</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
Hi All&lt;div&gt;I started playing with &lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;boost::lambda&lt;/font&gt; and I need some help or some clarification about it&lt;/div&gt;&lt;div&gt;or some hint to better understanding how does it work.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I have this piece of code&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;using namespace boost::lambda;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;using boost::lambda::var;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;int main(int argc, char** argv) {&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&amp;nbsp;&amp;nbsp; std::vector&amp;lt; int &amp;gt; myList;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&amp;nbsp;&amp;nbsp; myList.push_back(100);&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&amp;nbsp;&amp;nbsp; myList.push_back(200); &amp;nbsp; &amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&amp;nbsp;&amp;nbsp; int interval = 20;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&amp;nbsp;&amp;nbsp; std::for_each( myList.begin(), myList.end(),&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::cout &amp;lt;&amp;lt; &quot;value: &quot; &amp;lt;&amp;lt; _1 &amp;lt;&amp;lt; &quot;\n&quot;,&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::cout &amp;lt;&amp;lt; &quot;interval: &quot; &amp;lt;&amp;lt; var( interval ) &amp;lt;&amp;lt; &quot;\n&quot;,&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var( interval )++&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;));&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;}&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I understood that writing a lambda expression would be a substitute&lt;/div&gt;&lt;div&gt;for writing a functor.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I expected the following result&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;value: 100&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;interval: 20&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;value: 200&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;interval: 21&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Instead I had the following&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;intervalfirst value: 100&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;20&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;200&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;21&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Why the strings &quot;interval&quot; and &quot;first&quot; are not written for each value and how can I achieve this?&lt;/div&gt;&lt;div&gt;Kind Regards&lt;/div&gt;&lt;div&gt;Mn&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Screensaver, sfondi e scene: &lt;a href='http://www.messenger.it/home_personalizzaMessenger.aspx' target='_new' rel=&quot;nofollow&quot;&gt;scarica i gadget di Messenger&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26299535&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/doubt-on-lambda-expression-tp26299535p26299535.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26299565</id>
	<title>Re: concatenate strings?</title>
	<published>2009-11-11T03:04:46Z</published>
	<updated>2009-11-11T03:04:46Z</updated>
	<author>
		<name>Igor R</name>
	</author>
	<content type="html">&amp;gt; hi, i'm wondering if there is some function into boost to concatenate
&lt;br&gt;&amp;gt; several strings to have just  a long one?
&lt;br&gt;&lt;br&gt;Why can't you use standard operator+ or operator+= ?
&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26299565&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/concatenate-strings--tp26299488p26299565.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26299489</id>
	<title>Re: Constructing a shared pointer from a const pointer</title>
	<published>2009-11-11T03:02:17Z</published>
	<updated>2009-11-11T03:02:17Z</updated>
	<author>
		<name>veerus</name>
	</author>
	<content type="html">I got out of the problem.
&lt;br&gt;&lt;br&gt;The signature of bar is bar( int xpointer );
&lt;br&gt;&lt;br&gt;and foo calls bar( (int) &amp;x).
&lt;br&gt;&lt;br&gt;All I have to pass to bar is an identity of x.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Johan Nilsson-4 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;veerus wrote:
&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have been in trouble for a day solving this seemingly simple
&lt;br&gt;&amp;gt; problem - constructing shared_ptr&amp;lt;X&amp;gt; from const X&amp; without copying
&lt;br&gt;&amp;gt; the X object.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The programming logic does not allow me to construct the shared_ptr
&lt;br&gt;&amp;gt; like this: SX x = SX( new X( x ) );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Consider the following piece of code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; void foo( const X&amp; x )
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp;typedef shared_ptr&amp;lt;X&amp;gt; SX;
&lt;br&gt;&amp;gt; &amp;nbsp;SX px = SX( &amp;x );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;bar( px );
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The compiler gives the following error:
&lt;br&gt;&amp;gt; In shared_ptr.hpp at line 184: 'initializing' cannot convert from
&lt;br&gt;&amp;gt; 'const X *' to 'X*'.
&lt;br&gt;&lt;br&gt;To make it compile, you could simply change the typedef to &amp;quot;typedef 
&lt;br&gt;shared_ptr&amp;lt;X const&amp;gt; SX;&amp;quot;.
&lt;br&gt;&lt;br&gt;However, the code is suspect - depending on how the caller of foo declares 
&lt;br&gt;and manages the variable used as &amp;quot;x&amp;quot;, you're likely to either encounter a 
&lt;br&gt;delete of a (invalid reference to a) stack object sooner or later, or 
&lt;br&gt;perhaps a double delete. If I saw the above during a code review I would say 
&lt;br&gt;foo needs to be redesigned.
&lt;br&gt;&lt;br&gt;If you're relying on identity here, or if X is non-copyable, and want to 
&lt;br&gt;transfer ownership of &amp;quot;x&amp;quot; into &amp;quot;bar&amp;quot; you could define foo as:
&lt;br&gt;&lt;br&gt;void foo(std::auto_ptr&amp;lt;X&amp;gt; px)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; bar(shared_ptr&amp;lt;X&amp;gt;(px));
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;[It's hard to tell without knowing the full context]
&lt;br&gt;&lt;br&gt;/ Johan
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;Boost-users@lists.boost.org
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Constructing-a-shared-pointer-from-a-const-pointer-tp26296800p26299489.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26299488</id>
	<title>concatenate strings?</title>
	<published>2009-11-11T03:01:32Z</published>
	<updated>2009-11-11T03:01:32Z</updated>
	<author>
		<name>pedro chaparro</name>
	</author>
	<content type="html">hi, i&amp;#39;m wondering if there is some function into boost to concatenate several strings to have just  a long one?&lt;br&gt;thanks&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ing Pedro Alonso Chaparro Valero&lt;br&gt;Ciudad Politecnica de la Innovación&lt;br&gt;
iTEAM - Mobile Communications Group&lt;br&gt;Polytechnic University of Valencia&lt;br&gt;C\ Camino de Vera S/N, Edificio 8G&lt;br&gt;46022 Valencia, Spain&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26299488&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/concatenate-strings--tp26299488p26299488.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26298963</id>
	<title>Re: BGL - parallel/distributed</title>
	<published>2009-11-11T02:14:52Z</published>
	<updated>2009-11-11T02:14:52Z</updated>
	<author>
		<name>oslu</name>
	</author>
	<content type="html">Thank you very much. I thought that the constructor of graph would also 
&lt;br&gt;take care about initializing the mpi (if it has distributedS selector). 
&lt;br&gt;Some working example in the documentation of graph_parallel would help a 
&lt;br&gt;lot for sure. &amp;nbsp;Now it seems that everything works for me. Thank you once 
&lt;br&gt;more.
&lt;br&gt;&lt;br&gt;Nick Edmonds wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; To be even more precise, it exits the code in function MPI_Comm_dup 
&lt;br&gt;&amp;gt;&amp;gt; of mpi library. On linux I guess you have to have the mpi running, 
&lt;br&gt;&amp;gt;&amp;gt; but I don't know how it is on windows with mpich2.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You never initialized the Boost.MPI environment. &amp;nbsp;See the tests, but 
&lt;br&gt;&amp;gt; you're looking for something like:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; mpi::environment env(argc, argv);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This basically functions like MPI_Init() plus some Boost.MPI 
&lt;br&gt;&amp;gt; initialization. &amp;nbsp;Comm_dup fails because the communicator you're trying 
&lt;br&gt;&amp;gt; to dup doesn't exist.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Nick
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Boost-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26298963&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Dipl.-Ing. Ondrej Sluciak
&lt;br&gt;Room CG-04-06
&lt;br&gt;Vienna University of Technology, Austria
&lt;br&gt;Institute of Communications and Radio-Frequency Engineering
&lt;br&gt;Gusshausstrasse 25-29/389
&lt;br&gt;&lt;a href=&quot;http://www.nt.tuwien.ac.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nt.tuwien.ac.at&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26298963&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/BGL---parallel-distributed-tp26231842p26298963.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26298106</id>
	<title>Re: [Asio] Is shared_ptr with async_send_to ok?</title>
	<published>2009-11-11T01:04:21Z</published>
	<updated>2009-11-11T01:04:21Z</updated>
	<author>
		<name>Igor R</name>
	</author>
	<content type="html">&amp;gt; Socket.async_send_to(boost::asio::buffer(*SharedBuffer, BufferSize), DestinationEndpoint, boost::bind(&amp;MyClass::OnPacketSent, this, boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred));
&lt;br&gt;&amp;gt; // Shared buffer goes out of scope here, immediately!
&lt;br&gt;&lt;br&gt;&lt;br&gt;You do not copy SharedBuffer, so it's destroyed when goes out of
&lt;br&gt;scope. If you want SharedBuffer to outlive the handler, you can store
&lt;br&gt;the shared_ptr within the handler, like this:
&lt;br&gt;&lt;br&gt;// UNTESTED!
&lt;br&gt;using boost::bind;
&lt;br&gt;using boost::protect;
&lt;br&gt;Socket.async_send_to(buffer(*SharedBuffer, BufferSize), DestinationEndpoint,
&lt;br&gt;bind(protect(bind(&amp;MyClass::OnPacketSent, this, _1, _2)), _1, _2,
&lt;br&gt;SharedBuffer)); // you can revert back to the asio placeholders
&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26298106&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Asio--Is-shared_ptr-with-async_send_to-ok--tp26291686p26298106.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26297206</id>
	<title>Re: Constructing a shared pointer from a const pointer</title>
	<published>2009-11-10T23:37:51Z</published>
	<updated>2009-11-10T23:37:51Z</updated>
	<author>
		<name>Johan Nilsson-4</name>
	</author>
	<content type="html">veerus wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have been in trouble for a day solving this seemingly simple
&lt;br&gt;&amp;gt; problem - constructing shared_ptr&amp;lt;X&amp;gt; from const X&amp; without copying
&lt;br&gt;&amp;gt; the X object.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The programming logic does not allow me to construct the shared_ptr
&lt;br&gt;&amp;gt; like this: SX x = SX( new X( x ) );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Consider the following piece of code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; void foo( const X&amp; x )
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp;typedef shared_ptr&amp;lt;X&amp;gt; SX;
&lt;br&gt;&amp;gt; &amp;nbsp;SX px = SX( &amp;x );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;bar( px );
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The compiler gives the following error:
&lt;br&gt;&amp;gt; In shared_ptr.hpp at line 184: 'initializing' cannot convert from
&lt;br&gt;&amp;gt; 'const X *' to 'X*'.
&lt;/div&gt;&lt;br&gt;To make it compile, you could simply change the typedef to &amp;quot;typedef 
&lt;br&gt;shared_ptr&amp;lt;X const&amp;gt; SX;&amp;quot;.
&lt;br&gt;&lt;br&gt;However, the code is suspect - depending on how the caller of foo declares 
&lt;br&gt;and manages the variable used as &amp;quot;x&amp;quot;, you're likely to either encounter a 
&lt;br&gt;delete of a (invalid reference to a) stack object sooner or later, or 
&lt;br&gt;perhaps a double delete. If I saw the above during a code review I would say 
&lt;br&gt;foo needs to be redesigned.
&lt;br&gt;&lt;br&gt;If you're relying on identity here, or if X is non-copyable, and want to 
&lt;br&gt;transfer ownership of &amp;quot;x&amp;quot; into &amp;quot;bar&amp;quot; you could define foo as:
&lt;br&gt;&lt;br&gt;void foo(std::auto_ptr&amp;lt;X&amp;gt; px)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; bar(shared_ptr&amp;lt;X&amp;gt;(px));
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;[It's hard to tell without knowing the full context]
&lt;br&gt;&lt;br&gt;/ Johan
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26297206&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Constructing-a-shared-pointer-from-a-const-pointer-tp26296800p26297206.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26297087</id>
	<title>Re: Boost.Asio: &quot;End of file&quot; when receiving data</title>
	<published>2009-11-10T23:20:36Z</published>
	<updated>2009-11-10T23:20:36Z</updated>
	<author>
		<name>Jonathan Franklin</name>
	</author>
	<content type="html">On Tue, Nov 10, 2009 at 7:16 PM, tiredashell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26297087&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tiredashell@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; In addition to the &amp;quot;parameter is incorrect&amp;quot; error which I inquired about
&lt;br&gt;&amp;gt; earlier (and remains unsolved),
&lt;br&gt;&lt;br&gt;This may indicate that you're trying to set a socket option with an
&lt;br&gt;invalid value for your system.
&lt;br&gt;&lt;br&gt;&amp;gt; I am getting &amp;quot;End of file&amp;quot; sometimes when I
&lt;br&gt;&amp;gt; attempt to receive data such as in the code below.
&lt;br&gt;&lt;br&gt;This usually indicates that the other party closed the socket.
&lt;br&gt;&lt;br&gt;&amp;gt; Please offer some
&lt;br&gt;&amp;gt; guidance as to its cause, because there is absolutely no documentation on
&lt;br&gt;&amp;gt; what either of these errors mean.
&lt;br&gt;&lt;br&gt;These are well-known system errors. &amp;nbsp;You should familiarize yourself
&lt;br&gt;with the particulars of the socket library implementation for the
&lt;br&gt;system that you are working on. &amp;nbsp;e.g. Learn what particular errors
&lt;br&gt;your system can raise, and when.
&lt;br&gt;&lt;br&gt;Jon
&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26297087&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Boost.Asio%3A-%22End-of-file%22-when-receiving-data-tp26294970p26297087.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26296870</id>
	<title>Re: Constructing a shared pointer from a const pointer</title>
	<published>2009-11-10T22:52:02Z</published>
	<updated>2009-11-10T22:52:02Z</updated>
	<author>
		<name>veerus</name>
	</author>
	<content type="html">To add more to the above query,
&lt;br&gt;assume that 'bar' is defined as follows:
&lt;br&gt;&lt;br&gt;map&amp;lt;SX, SX&amp;gt; m;
&lt;br&gt;&lt;br&gt;bar( SX px )
&lt;br&gt;{
&lt;br&gt;&lt;br&gt;&amp;nbsp;m.insert( pair&amp;lt;SX, SX&amp;gt;(px, &amp;nbsp;someFunction( px ) )); 
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Can we do with a weak_ptr&amp;lt;X&amp;gt; instead of shared_ptr&amp;lt;X&amp;gt; ?
&lt;br&gt;&lt;br&gt;Thanks </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Constructing-a-shared-pointer-from-a-const-pointer-tp26296800p26296870.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26296800</id>
	<title>Constructing a shared pointer from a const pointer</title>
	<published>2009-11-10T22:41:17Z</published>
	<updated>2009-11-10T22:41:17Z</updated>
	<author>
		<name>veerus</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;I have been in trouble for a day solving this seemingly simple problem - constructing shared_ptr&amp;lt;X&amp;gt; from const X&amp; without copying the X object.
&lt;br&gt;&lt;br&gt;The programming logic does not allow me to construct the shared_ptr like this: SX x = SX( new X( x ) );
&lt;br&gt;&lt;br&gt;Consider the following piece of code:
&lt;br&gt;&lt;br&gt;void foo( const X&amp; x )
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; typedef shared_ptr&amp;lt;X&amp;gt; SX;
&lt;br&gt;&amp;nbsp; SX px = SX( &amp;x );
&lt;br&gt;&lt;br&gt;&amp;nbsp; bar( px );
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;The compiler gives the following error: 
&lt;br&gt;In shared_ptr.hpp at line 184: 'initializing' cannot convert from 'const X *' to 'X*'.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Please suggest any procedure to solve this problem.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Constructing-a-shared-pointer-from-a-const-pointer-tp26296800p26296800.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26294970</id>
	<title>Boost.Asio: &quot;End of file&quot; when receiving data</title>
	<published>2009-11-10T18:16:18Z</published>
	<updated>2009-11-10T18:16:18Z</updated>
	<author>
		<name>tiredashell@gmail.com</name>
	</author>
	<content type="html">In addition to the &amp;quot;parameter is incorrect&amp;quot; error which I inquired about earlier (and remains unsolved), I am getting &amp;quot;End of file&amp;quot; sometimes when I attempt to receive data such as in the code below. Please offer some guidance as to its cause, because there is absolutely no documentation on what either of these errors mean.&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;char reply[1024];&lt;/div&gt;&lt;div&gt;boost::system::error_code error;&lt;/div&gt;&lt;div&gt;size_t reply_length = s.receive(boost::asio::buffer(reply, 1024), 0, error);&lt;/div&gt;&lt;div&gt;if (error) cout &amp;lt;&amp;lt; error.message() &amp;lt;&amp;lt; endl;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26294970&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Boost.Asio%3A-%22End-of-file%22-when-receiving-data-tp26294970p26294970.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26294176</id>
	<title>Re: running a server &quot;in background mode&quot; ??</title>
	<published>2009-11-10T16:46:42Z</published>
	<updated>2009-11-10T16:46:42Z</updated>
	<author>
		<name>Ryan McConnehey</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; io_service.run();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; printf(&amp;quot;Writting a line 1 \n&amp;quot;);
&lt;br&gt;&lt;br&gt;The io_service can't exit the run command until all the work is 
&lt;br&gt;complete. &amp;nbsp;You need to put the io_service.run() into its own thread if 
&lt;br&gt;you want to still execute things in main.
&lt;br&gt;&lt;br&gt;boost::thread runningService(boost::bind(&amp;boost::asio::io_service::run, 
&lt;br&gt;io_service));
&lt;br&gt;printf(&amp;quot;Writting a line 1 \n&amp;quot;);
&lt;br&gt;sleep(5);
&lt;br&gt;printf(&amp;quot;Writting a line 2 \n&amp;quot;);
&lt;br&gt;runningService.join();
&lt;br&gt;&lt;br&gt;This will allow you to continue and execute code in your main function. &amp;nbsp;
&lt;br&gt;The problem you'll run into is trying to close the thread properly. &amp;nbsp;I 
&lt;br&gt;used the HTTP Server 2 example to create a class that ran my process but 
&lt;br&gt;responded to an outside event to signal the class to stop processing.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/example/http/server2/win_main.cpp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/example/http/server2/win_main.cpp&lt;/a&gt;&lt;br&gt;&lt;br&gt;Ryan
&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26294176&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/running-a-server-%22in-background-mode%22----tp26270874p26294176.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26293405</id>
	<title>Re: [Fusion] Views of Associative Sequences</title>
	<published>2009-11-10T15:33:43Z</published>
	<updated>2009-11-10T15:33:43Z</updated>
	<author>
		<name>Christopher Schmidt-4</name>
	</author>
	<content type="html">er schrieb:
&lt;br&gt;&amp;gt; Sorry for troubling you with more trivialities, but by HEAD do you mean
&lt;br&gt;&amp;gt; the latest update?
&lt;br&gt;Yeah, the most up-to-date revision of the fusion trunk.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Could you please confirm if this is the link from which I should copy
&lt;br&gt;&amp;gt; fusion to my current release so I can start using the new facilities you
&lt;br&gt;&amp;gt; have provided:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://svn.boost.org/svn/boost/trunk/boost/fusion/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.boost.org/svn/boost/trunk/boost/fusion/&lt;/a&gt;&lt;br&gt;That's correct.
&lt;br&gt;&lt;br&gt;svn co &lt;a href=&quot;http://svn.boost.org/svn/boost/trunk/boost/fusion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.boost.org/svn/boost/trunk/boost/fusion&lt;/a&gt;&amp;nbsp;fusion
&lt;br&gt;&lt;br&gt;-Christopher
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26293405&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Fusion--Views-of-Associative-Sequences-tp25914584p26293405.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26291975</id>
	<title>[inteprocess] Use of duration for the message_queue timed functions</title>
	<published>2009-11-10T13:46:13Z</published>
	<updated>2009-11-10T13:46:13Z</updated>
	<author>
		<name>Achal Shah</name>
	</author>
	<content type="html">&lt;div&gt;A suggestion for the message_queue class is to overload timed_send and timed_receive so that they can accept a duration (say in milliseconds).  I believe currently they work on an absolute time being reached.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Thanks,&lt;/div&gt;
&lt;div&gt;- Achal.&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291975&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-inteprocess--Use-of-duration-for-the-message_queue-timed-functions-tp26291975p26291975.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26291686</id>
	<title>[Asio] Is shared_ptr with async_send_to ok?</title>
	<published>2009-11-10T13:39:28Z</published>
	<updated>2009-11-10T13:39:28Z</updated>
	<author>
		<name>Dylan Klomparens</name>
	</author>
	<content type="html">I&amp;#39;m using a UDP socket to send data asynchronously. I know I need to preserve the data in a buffer until the async write is complete. Can I use a shared_ptr to accomplish this? Basically, my question is, will &lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;async_send_to&lt;/span&gt; keep a copy of my &lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;shared_ptr&lt;/span&gt; so that the data doesn&amp;#39;t get deleted? Do I need to use a particular overload of the &lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;boost::asio::buffer&lt;/span&gt; function to ensure that a copy of the &lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;shared_ptr&lt;/span&gt; is stored?&lt;br&gt;
&lt;br&gt;Here is an example:&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;boost::asio::streambuf Buffer;&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace; color: rgb(0, 153, 0);&quot;&gt;// ... buffer is filled with data ...&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;int&lt;/span&gt; BufferSize = Buffer.size();&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;boost::shared_ptr&amp;lt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;unsigned char&lt;/span&gt;&amp;gt; SharedBuffer(&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;new unsigned char&lt;/span&gt;[BufferSize]);&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;Buffer.sgetn(*SharedBuffer, BufferSize);&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;Buffer.consume(BufferSize);&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;Socket.async_send_to(boost::asio::buffer(*SharedBuffer, BufferSize), DestinationEndpoint, boost::bind(&amp;amp;MyClass::OnPacketSent, &lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;this&lt;/span&gt;, boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred));&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;font-family: courier new,monospace; color: rgb(0, 153, 0);&quot;&gt;// Shared buffer goes out of scope here, immediately!&lt;/span&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291686&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Asio--Is-shared_ptr-with-async_send_to-ok--tp26291686p26291686.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26291337</id>
	<title>Re: [Fusion] Views of Associative Sequences</title>
	<published>2009-11-10T13:17:43Z</published>
	<updated>2009-11-10T13:17:43Z</updated>
	<author>
		<name>g-h-d</name>
	</author>
	<content type="html">Christopher Schmidt wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Unfortunately the changes in &amp;lt;boost/fusion/view/joint_view/*&amp;gt; are not
&lt;br&gt;&amp;gt; stand-alone, and I was too late to merge them into the 1.41 release branch.
&lt;br&gt;&lt;br&gt;OK.
&lt;br&gt;&lt;br&gt;&amp;gt; I suggest you to work with a copy of the HEAD of the trunk.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;Sorry for troubling you with more trivialities, but by HEAD do you mean 
&lt;br&gt;the latest update?
&lt;br&gt;&lt;br&gt;Could you please confirm if this is the link from which I should copy 
&lt;br&gt;fusion to my current release so I can start using the new facilities you 
&lt;br&gt;have provided:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://svn.boost.org/svn/boost/trunk/boost/fusion/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.boost.org/svn/boost/trunk/boost/fusion/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291337&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Fusion--Views-of-Associative-Sequences-tp25914584p26291337.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26290686</id>
	<title>Re: Two questions on boost::function</title>
	<published>2009-11-10T12:32:43Z</published>
	<updated>2009-11-10T12:32:43Z</updated>
	<author>
		<name>Steven Watanabe-4</name>
	</author>
	<content type="html">AMDG
&lt;br&gt;&lt;br&gt;CHRISTOPHE KOUDELLA, CITADEL INVESTMENT G wrote:
&lt;br&gt;&amp;gt; Hi, I am hopng to get some help from boost::function users on two questions I have. 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; First, is it possible to extract the underlying functor out of a function? The reason for this is that it is useful to have the boost::function abstraction to move around functors in a generic fashion, but the interface is obviously limited to operator(), so being able to extract the underlying class out of a boost::function would be useful. I am thinking mostly about applied math applications in which functions are defined by more than an operator, whence the interface of boost::function is sometimes insufficient.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;If you have to extract the underlying type, boost::function is probably 
&lt;br&gt;not appropriate.
&lt;br&gt;&lt;br&gt;&amp;gt; Second, I was looking to implement a &amp;quot;function algebra&amp;quot; for boost::function (of a given arity, for a start). This algebra would implement sum, difference, product, composition, etc... operations on a pair of like boost::functions. In a template implementation in order to implement the operator() of the result boost::function, I need to access the result type and the argument types of the boost::functions being operated on. So, suppose I want to implement a product operation on a pair of template functors, then in order to define the operator() of the product of the functors, I need the result and argument types. Does boost::function make these types available as some typedefs? Does what I say make at all sense or would you proceed entirely differently in order to define such operations on boost::function?
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;Something like this can be done using Boost.Lambda.
&lt;br&gt;&lt;br&gt;boost::function&amp;lt;int(int)&amp;gt; f1, f2, f3;
&lt;br&gt;//...
&lt;br&gt;using namespace boost::lambda;
&lt;br&gt;// sum
&lt;br&gt;f3 = bind(f1, _1) + bind(f2, _1);
&lt;br&gt;// composition
&lt;br&gt;f3 = bind(f1, bind(f2, _1));
&lt;br&gt;&lt;br&gt;In Christ,
&lt;br&gt;Steven Watanabe
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26290686&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Two-questions-on-boost%3A%3Afunction-tp26290433p26290686.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26290433</id>
	<title>Two questions on boost::function</title>
	<published>2009-11-10T11:58:11Z</published>
	<updated>2009-11-10T11:58:11Z</updated>
	<author>
		<name>CHRISTOPHE KOUDELLA, CITADEL INVESTMENT G</name>
	</author>
	<content type="html">Hi, I am hopng to get some help from boost::function users on two questions I have. 
&lt;br&gt;&lt;br&gt;First, is it possible to extract the underlying functor out of a function? The reason for this is that it is useful to have the boost::function abstraction to move around functors in a generic fashion, but the interface is obviously limited to operator(), so being able to extract the underlying class out of a boost::function would be useful. I am thinking mostly about applied math applications in which functions are defined by more than an operator, whence the interface of boost::function is sometimes insufficient. 
&lt;br&gt;&lt;br&gt;Second, I was looking to implement a &amp;quot;function algebra&amp;quot; for boost::function (of a given arity, for a start). This algebra would implement sum, difference, product, composition, etc... operations on a pair of like boost::functions. In a template implementation in order to implement the operator() of the result boost::function, I need to access the result type and the argument types of the boost::functions being operated on. So, suppose I want to implement a product operation on a pair of template functors, then in order to define the operator() of the product of the functors, I need the result and argument types. Does boost::function make these types available as some typedefs? Does what I say make at all sense or would you proceed entirely differently in order to define such operations on boost::function?
&lt;br&gt;&lt;br&gt;Thanks for any input,
&lt;br&gt;CK 
&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26290433&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Two-questions-on-boost%3A%3Afunction-tp26290433p26290433.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26290179</id>
	<title>Re: BGL - parallel/distributed</title>
	<published>2009-11-10T11:56:06Z</published>
	<updated>2009-11-10T11:56:06Z</updated>
	<author>
		<name>Nick Edmonds</name>
	</author>
	<content type="html">&amp;gt; To be even more precise, it exits the code in function MPI_Comm_dup &amp;nbsp;
&lt;br&gt;&amp;gt; of mpi library. On linux I guess you have to have the mpi running, &amp;nbsp;
&lt;br&gt;&amp;gt; but I don't know how it is on windows with mpich2.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;You never initialized the Boost.MPI environment. &amp;nbsp;See the tests, but &amp;nbsp;
&lt;br&gt;you're looking for something like:
&lt;br&gt;&lt;br&gt;mpi::environment env(argc, argv);
&lt;br&gt;&lt;br&gt;This basically functions like MPI_Init() plus some Boost.MPI &amp;nbsp;
&lt;br&gt;initialization. &amp;nbsp;Comm_dup fails because the communicator you're trying &amp;nbsp;
&lt;br&gt;to dup doesn't exist.
&lt;br&gt;&lt;br&gt;-Nick
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26290179&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/BGL---parallel-distributed-tp26231842p26290179.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26286424</id>
	<title>boost::graph - Newbie question about vertex properties</title>
	<published>2009-11-10T08:13:04Z</published>
	<updated>2009-11-10T08:13:04Z</updated>
	<author>
		<name>Stephen Karmann</name>
	</author>
	<content type="html">Hello dear mailing list members,
&lt;br&gt;&lt;br&gt;i'm new to this mailing list and hope i'm right here and that my english is not
&lt;br&gt;too annoying. 
&lt;br&gt;&lt;br&gt;I have to to some distance calculation and decided to use the
&lt;br&gt;boost::graph-framework to do this as i have to develop a C++ application using
&lt;br&gt;Visual C++ Express Edition 2008. I have to include some background details
&lt;br&gt;information in the vertices and edges of my graph and chose to append such meta
&lt;br&gt;info objects to the vertices and edges with the help of properties. I defined
&lt;br&gt;the following types in the Header-Class:
&lt;br&gt;&lt;br&gt;[code]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct vtx_ref_t {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typedef boost::vertex_property_tag kind;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct edge_ref_t {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typedef boost::edge_property_tag kind;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // VtxMetaClass and EdgeMetaClass are some Classes containing some &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // infos needed for calculation
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typedef boost::property&amp;lt;vtx_ref_t, VtxMetaClass*&amp;gt; VtxProperty;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typedef boost::property&amp;lt;edge_ref_t, EdgeMetaClass*&amp;gt; EdgeProperty;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typedef boost::adjacency_list&amp;lt;boost::vecS, boost::vecS, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::directedS, VtxProperty, EdgeProperty&amp;gt; MyGraphType;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typedef boost::graph_traits&amp;lt;MyGraphType&amp;gt;::vertex_descriptor vertex_t;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typedef boost::graph_traits&amp;lt;MyGraphType&amp;gt;::edge_descriptor edge_t;
&lt;br&gt;[/code]
&lt;br&gt;&lt;br&gt;In the Main-Method i tried to use the function boost::put to append such a meta
&lt;br&gt;class object infoobj to a vertex (whose vertex descriptor vtx i only have) i
&lt;br&gt;have created somewhere else where i cannot append the infoobject cause i don't
&lt;br&gt;know at that time which one to append. 
&lt;br&gt;&lt;br&gt;[code]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MyGraphType graph(100);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vertex_t vtx = boost::add_vertex(graph);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VtxMetaClass* infoobj;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::property_map&amp;lt;MyGraphType, vtx_ref_t&amp;gt;::type vtxref = 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; get(vtx_ref_t(), graph);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boost::put(vtxref, graph, vtx, infoobj);
&lt;br&gt;[/code]
&lt;br&gt;&lt;br&gt;But i only get a compilation error telling me that:
&lt;br&gt;1&amp;gt;e:\development\VC++\project\include\boost/pending/property.hpp(46) : error
&lt;br&gt;C2039: 'kind': is no element of
&lt;br&gt;'boost::vec_adj_list_vertex_property_map&amp;lt;Graph,GraphPtr,ValueType,Reference,Tag&amp;gt;'
&lt;br&gt;&lt;br&gt;What is wrong with that, i did what was suggested in the online manual ? 
&lt;br&gt;&lt;br&gt;I know there's also the possibility to use boost::put with the index of the
&lt;br&gt;vertex that has to be manipulated, but i don't know how to query the index from
&lt;br&gt;the vertex_descriptor i have, perhaps you came across a way to do this yet ...
&lt;br&gt;&lt;br&gt;Perhaps you could help me with this problem ?
&lt;br&gt;Thank you very much in anticipation,
&lt;br&gt;Stephen
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26286424&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/boost%3A%3Agraph---Newbie-question-about-vertex-properties-tp26286424p26286424.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26285620</id>
	<title>Re: [test] Linking against boost_unit_test_framework causes double-deletion in std::ostringstream</title>
	<published>2009-11-10T07:33:35Z</published>
	<updated>2009-11-10T07:33:35Z</updated>
	<author>
		<name>Christoph Duelli</name>
	</author>
	<content type="html">Roman Perepelitsa wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; 2009/11/10 Alastair Rankine &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26285620&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arsptr@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;Just curious if anyone else has seen this or anything like it? Platform 
&lt;br&gt;&amp;gt;&amp;gt;is Mac OS X 10.6.1, gcc 4.2.1, boost 1.40.0 installed from MacPorts, 
&lt;br&gt;&amp;gt;&amp;gt;compiling 64-bit (default).
&lt;br&gt;I have crashes and &amp;quot;double deletions&amp;quot; in my unit tests, too.
&lt;br&gt;I am running Linux, gcc 4.2.1, Boost 1.41.0-beta1;
&lt;br&gt;(I have no crashes or double deletions with Boost 1.40.0.)
&lt;br&gt;&lt;br&gt;&amp;gt; As far as I remember, boost_unit_test_framework defines main function.
&lt;br&gt;&amp;gt; Having two main functions in the same application might be what's causing
&lt;br&gt;&amp;gt; your problems.
&lt;br&gt;Definitely no two mains; 'my' main comes from a macro provided by
&lt;br&gt;Boost.Test.
&lt;br&gt;&lt;br&gt;&amp;gt; Another possibility is that the library and the program are 
&lt;br&gt;&amp;gt; compiled with different standard libraries.
&lt;br&gt;I have built both boost and my programs/tests myself, so I can rule the
&lt;br&gt;&amp;quot;different standard library&amp;quot; thing out.
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26285620&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-test--Linking-against-boost_unit_test_framework-causes-double-deletion-in-std%3A%3Aostringstream-tp26281497p26285620.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26283575</id>
	<title>Re: [BGL] Schultes and Sanders Contraction Hierarchies Routing</title>
	<published>2009-11-10T05:40:05Z</published>
	<updated>2009-11-10T05:40:05Z</updated>
	<author>
		<name>Andrew Sutton-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Has anyone looked at supporting Drs Schultes and Sanders Contraction Hierarchies Routing using Boost Graph?&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;No. For some reason, good results in graph algorithms don&amp;#39;t filter down to us too quickly :)&lt;br&gt;
 &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

If Andrew, Jeremiah or others have time to look at some of the papers, I would be interested in your thoughts on supporting this or even knowing that BGL might be the wrong tool to implement this with.&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;
&lt;br&gt;I only have time to give the paper a very brief look this morning, but it seems like it might be feasible to reproduce this with the BGL. However, there are so many components to the technique, that it would require careful planning. For example, contraction may be difficult to implement. The vast majority of our use cases target graph construction and query. Fully dynamic graphs... well, they&amp;#39;re supported, but maybe not as well as we&amp;#39;d like.&lt;br&gt;
&lt;br&gt;I would certainly be interested to see somebody try to put this together for the BGL. I think it might drive a lot of interesting requirements for the library, and identify areas that we could improve on.&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;Andrew Sutton&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26283575&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andrew.n.sutton@...&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26283575&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-BGL--Schultes-and-Sanders-Contraction-Hierarchies-Routing-tp26249902p26283575.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26282838</id>
	<title>Re: [test] Linking against boost_unit_test_framework causes double-deletion in std::ostringstream</title>
	<published>2009-11-10T04:48:49Z</published>
	<updated>2009-11-10T04:48:49Z</updated>
	<author>
		<name>Roman Perepelitsa-3</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/10 Alastair Rankine &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26282838&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;arsptr@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
#include &amp;lt;sstream&amp;gt;&lt;br&gt;
&lt;br&gt;
int main()&lt;br&gt;
{&lt;br&gt;
   std::ostringstream str;&lt;br&gt;
   str &amp;lt;&amp;lt; &amp;quot;Help Me!&amp;quot;;&lt;br&gt;
&lt;br&gt;
   return 0;&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Here&amp;#39;s what I&amp;#39;m doing:&lt;br&gt;
&lt;br&gt;
% g++ -o streamtest_bad -ggdb -L/opt/local/lib -lboost_unit_test_framework-mt-d streamtest.cpp&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;As far as I remember, boost_unit_test_framework defines main function. Having two main functions in the same application might be what&amp;#39;s causing your problems. Another possibility is that the library and the program are compiled with different standard libraries.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Roman Perepelitsa.&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26282838&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-test--Linking-against-boost_unit_test_framework-causes-double-deletion-in-std%3A%3Aostringstream-tp26281497p26282838.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26282586</id>
	<title>Re: running a server &quot;in background mode&quot; ??</title>
	<published>2009-11-10T04:29:57Z</published>
	<updated>2009-11-10T04:29:57Z</updated>
	<author>
		<name>Igor R</name>
	</author>
	<content type="html">&amp;gt;     boost::asio::io_service io_service;
&lt;br&gt;&amp;gt;     tcp_server server(io_service);
&lt;br&gt;&amp;gt;     io_service.run();
&lt;br&gt;&lt;br&gt;io_service::run() does not return until there's no work for io_service.
&lt;br&gt;But you can run io_service in another thread:
&lt;br&gt;&lt;br&gt;new boost::thread(&amp;asio::io_service::run, &amp;io_service); // note that
&lt;br&gt;io_service object can't be local here, as it must outlive the thread!
&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26282586&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/running-a-server-%22in-background-mode%22----tp26270874p26282586.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26282506</id>
	<title>Re: BGL - parallel/distributed</title>
	<published>2009-11-10T04:24:02Z</published>
	<updated>2009-11-10T04:24:02Z</updated>
	<author>
		<name>oslu</name>
	</author>
	<content type="html">To be even more precise, it exits the code in function MPI_Comm_dup of 
&lt;br&gt;mpi library. On linux I guess you have to have the mpi running, but I 
&lt;br&gt;don't know how it is on windows with mpich2.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Jeremiah Willcock wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, 9 Nov 2009, Ondrej Sluciak wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ok, I tried the simplest possible example, but just didn't figure out 
&lt;br&gt;&amp;gt;&amp;gt; where the problem is. I am on windows, mpich2 installed, all boost 
&lt;br&gt;&amp;gt;&amp;gt; libs correctly compiled with mpi, but if I do something like
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;lt;boost/graph/use_mpi.hpp&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;lt;boost/graph/distributed/selector.hpp&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;lt;boost/graph/distributed/adjacency_list.hpp&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;lt;boost/graph/distributed/mpi_process_group.hpp&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; void main(){
&lt;br&gt;&amp;gt;&amp;gt; using namespace boost;
&lt;br&gt;&amp;gt;&amp;gt; typedef 
&lt;br&gt;&amp;gt;&amp;gt; adjacency_list&amp;lt;vecS,distributedS&amp;lt;graph::distributed::mpi_process_group, 
&lt;br&gt;&amp;gt;&amp;gt; vecS&amp;gt;, directedS&amp;gt; &amp;nbsp;Graph;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Graph g(4);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; };
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I always get linking problems like:
&lt;br&gt;&amp;gt;&amp;gt; Error &amp;nbsp; &amp;nbsp;7 &amp;nbsp; &amp;nbsp;error LNK2019: unresolved external symbol &amp;quot;void __cdecl 
&lt;br&gt;&amp;gt;&amp;gt; boost::graph::distributed::synchronize(class 
&lt;br&gt;&amp;gt;&amp;gt; boost::graph::distributed::mpi_process_group const &amp;)&amp;quot; 
&lt;br&gt;&amp;gt;&amp;gt; (?synchronize@distributed@graph@boost@@YAXABVmpi_process_group@123@@Z) 
&lt;br&gt;&amp;gt;&amp;gt; referenced in function &amp;quot;public: __thiscall 
&lt;br&gt;&amp;gt;&amp;gt; boost::adjacency_list&amp;lt;struct boost::vecS,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::distributedS&amp;lt;class 
&lt;br&gt;&amp;gt;&amp;gt; boost::graph::distributed::mpi_process_group,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::vecS,struct boost::defaultS&amp;gt;,struct boost::directedS,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::no_property,struct boost::no_property,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::no_property,struct boost::listS&amp;gt;::~adjacency_list&amp;lt;struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::vecS,struct boost::distributedS&amp;lt;class 
&lt;br&gt;&amp;gt;&amp;gt; boost::graph::distributed::mpi_process_group,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::vecS,struct boost::defaultS&amp;gt;,struct boost::directedS,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::no_property,struct boost::no_property,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::no_property,struct boost::listS&amp;gt;(void)&amp;quot; 
&lt;br&gt;&amp;gt;&amp;gt; (??1?$adjacency_list@UvecS@boost@@U?$distributedS@Vmpi_process_group@distributed@graph@boost@@UvecS@4@UdefaultS@4@@2@UdirectedS@2@Uno_property@2@U52@U52@UlistS@2@@boost@@QAE@XZ) 
&lt;br&gt;&amp;gt;&amp;gt; boostTest2.obj
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think I have included all the necessary libs (including mpi.lib 
&lt;br&gt;&amp;gt;&amp;gt; from mpich directory), so I still don't understand where is the 
&lt;br&gt;&amp;gt;&amp;gt; problem. Does anyone tried distributed graph class?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Are you also including the graph_parallel library? &amp;nbsp;
&lt;br&gt;&amp;gt; Boost.Graph.Parallel is not header-only, unlike almost all of the 
&lt;br&gt;&amp;gt; sequential Boost.Graph library.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- Jeremiah Willcock
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Boost-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26282506&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Dipl.-Ing. Ondrej Sluciak
&lt;br&gt;Room CG-04-06
&lt;br&gt;Vienna University of Technology, Austria
&lt;br&gt;Institute of Communications and Radio-Frequency Engineering
&lt;br&gt;Gusshausstrasse 25-29/389
&lt;br&gt;&lt;a href=&quot;http://www.nt.tuwien.ac.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nt.tuwien.ac.at&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26282506&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/BGL---parallel-distributed-tp26231842p26282506.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26281893</id>
	<title>Re: running a server &quot;in background mode&quot; ??</title>
	<published>2009-11-10T03:29:57Z</published>
	<updated>2009-11-10T03:29:57Z</updated>
	<author>
		<name>pedro chaparro</name>
	</author>
	<content type="html">thanks very much for your support!!! i&amp;#39;ve understood that code, but however when i run it , i don&amp;#39;t really see some difference, the server keeps in listening mode, blocking the execution of the rest of the code : i&amp;#39;ve added two simple line to print something on the console, and what i want is execute the server,that it keeps open in background but inmediatly execute too the printf code lines. main fuction would be :&lt;br&gt;
.&lt;br&gt;.&lt;br&gt;.&lt;br&gt;.&lt;br&gt;&lt;br&gt;int main()&lt;br&gt;{&lt;br&gt;  try&lt;br&gt;  {&lt;br&gt;    boost::asio::io_service io_service;&lt;br&gt;    tcp_server server(io_service);&lt;br&gt;    io_service.run();&lt;br&gt;    printf(&amp;quot;Writting a line 1 \n&amp;quot;);&lt;br&gt;    sleep(5);&lt;br&gt;
    printf(&amp;quot;Writting a line 2 \n&amp;quot;);&lt;br&gt;    &lt;br&gt;  }&lt;br&gt;  catch (std::exception&amp;amp; e)&lt;br&gt;  {&lt;br&gt;    std::cerr &amp;lt;&amp;lt; e.what() &amp;lt;&amp;lt; std::endl;&lt;br&gt;  }&lt;br&gt;&lt;br&gt;  return 0;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
2009/11/9 Maxime van Noppen &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26281893&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maxime@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;pedro chaparro wrote:&lt;br&gt;
&amp;gt; Hi, i need to use a server inside of other code application, i take the&lt;br&gt;
&amp;gt; example from&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/tutorial/tutdaytime2/src.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/tutorial/tutdaytime2/src.html&lt;/a&gt;&lt;br&gt;
&amp;gt; and it works but the server stay in listening mode and there is other&lt;br&gt;
&amp;gt; code after that i&amp;#39;d like continue executing, is possible tu run the&lt;br&gt;
&amp;gt; server let&amp;#39;s say like in a background mode?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Hi,&lt;br&gt;
&lt;br&gt;
You should look to how asynchronous operations work :&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/tutorial/tutdaytime3.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/tutorial/tutdaytime3.html&lt;/a&gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
Maxime&lt;br&gt;
_______________________________________________&lt;br&gt;
Boost-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26281893&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ing Pedro Alonso Chaparro Valero&lt;br&gt;Ciudad Politecnica de la Innovación&lt;br&gt;iTEAM - Mobile Communications Group&lt;br&gt;Polytechnic University of Valencia&lt;br&gt;C\ Camino de Vera S/N, Edificio 8G&lt;br&gt;
46022 Valencia, Spain&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26281893&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/running-a-server-%22in-background-mode%22----tp26270874p26281893.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26281809</id>
	<title>Re: [Fusion] Views of Associative Sequences</title>
	<published>2009-11-10T03:20:29Z</published>
	<updated>2009-11-10T03:20:29Z</updated>
	<author>
		<name>Christopher Schmidt-4</name>
	</author>
	<content type="html">er schrieb:
&lt;br&gt;&amp;gt; I wonder if I should wait for v1.41 (when : is there an estimate?) or if
&lt;br&gt;&amp;gt; I can already remove joint_view.hpp from my current copy of boost and
&lt;br&gt;&amp;gt; replace it with the new one : do you remember if the changes in
&lt;br&gt;&amp;gt; joint_view standalone?
&lt;br&gt;&lt;br&gt;Unfortunately the changes in &amp;lt;boost/fusion/view/joint_view/*&amp;gt; are not
&lt;br&gt;stand-alone, and I was too late to merge them into the 1.41 release branch.
&lt;br&gt;I suggest you to work with a copy of the HEAD of the trunk.
&lt;br&gt;&lt;br&gt;-Christopher
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26281809&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Fusion--Views-of-Associative-Sequences-tp25914584p26281809.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26281497</id>
	<title>[test] Linking against boost_unit_test_framework causes double-deletion in std::ostringstream</title>
	<published>2009-11-10T02:50:20Z</published>
	<updated>2009-11-10T02:50:20Z</updated>
	<author>
		<name>Alastair Rankine-3</name>
	</author>
	<content type="html">Just curious if anyone else has seen this or anything like it? Platform 
&lt;br&gt;is Mac OS X 10.6.1, gcc 4.2.1, boost 1.40.0 installed from MacPorts, 
&lt;br&gt;compiling 64-bit (default).
&lt;br&gt;&lt;br&gt;Here's my test code:
&lt;br&gt;&lt;br&gt;#include &amp;lt;sstream&amp;gt;
&lt;br&gt;&lt;br&gt;int main()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; std::ostringstream str;
&lt;br&gt;&amp;nbsp; &amp;nbsp; str &amp;lt;&amp;lt; &amp;quot;Help Me!&amp;quot;;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;Here's what I'm doing:
&lt;br&gt;&lt;br&gt;% g++ -o streamtest_bad -ggdb -L/opt/local/lib 
&lt;br&gt;-lboost_unit_test_framework-mt-d streamtest.cpp
&lt;br&gt;% ./streamtest_bad
&lt;br&gt;streamtest_bad(63554) malloc: *** error for object 0x7fff7008a500: 
&lt;br&gt;pointer being freed was not allocated
&lt;br&gt;*** set a breakpoint in malloc_error_break to debug
&lt;br&gt;zsh: abort &amp;nbsp; &amp;nbsp; &amp;nbsp;./streamtest_bad
&lt;br&gt;%
&lt;br&gt;&lt;br&gt;Works fine against other boost libraries, eg system:
&lt;br&gt;&lt;br&gt;% g++ -o streamtest_good -ggdb -L/opt/local/lib -lboost_system-mt-d 
&lt;br&gt;streamtest.cpp
&lt;br&gt;% ./streamtest_good
&lt;br&gt;%
&lt;br&gt;&lt;br&gt;&lt;br&gt;Note that this seems to be a separate problem to that reported in 
&lt;br&gt;ticket 3432 (&lt;a href=&quot;https://svn.boost.org/trac/boost/ticket/3432&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://svn.boost.org/trac/boost/ticket/3432&lt;/a&gt;). At least, I 
&lt;br&gt;have verified that the framework::clear() function isn't being called 
&lt;br&gt;in the above code, which does tend to point the finger at a different 
&lt;br&gt;part of the library.
&lt;br&gt;&lt;br&gt;The backtrace is not particularly enlightening, but posted here for the 
&lt;br&gt;sake of completeness:
&lt;br&gt;&lt;br&gt;(gdb) bt
&lt;br&gt;#0 &amp;nbsp;0x00007fff87f92ff6 in __kill ()
&lt;br&gt;#1 &amp;nbsp;0x00007fff88034072 in abort ()
&lt;br&gt;#2 &amp;nbsp;0x00007fff87f4b095 in free ()
&lt;br&gt;#3 &amp;nbsp;0x0000000100005533 in __gnu_cxx::new_allocator&amp;lt;char&amp;gt;::deallocate 
&lt;br&gt;(this=0x7fff5fbff5df, __p=0x7fff7008a500 &amp;quot;&amp;quot;) at new_allocator.h:97
&lt;br&gt;#4 &amp;nbsp;0x0000000100005578 in std::string::_Rep::_M_destroy 
&lt;br&gt;(this=0x7fff7008a500, __a=@0x7fff5fbff63f) at basic_string.tcc:431
&lt;br&gt;#5 &amp;nbsp;0x0000000100005939 in std::string::_Rep::_M_dispose 
&lt;br&gt;(this=0x7fff7008a500, __a=@0x7fff5fbff63f) at basic_string.h:238
&lt;br&gt;#6 &amp;nbsp;0x000000010000596a in std::basic_string&amp;lt;char, 
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt;, std::allocator&amp;lt;char&amp;gt; &amp;gt;::~basic_string 
&lt;br&gt;(this=0x7fff5fbff670) at basic_string.h:493
&lt;br&gt;#7 &amp;nbsp;0x000000010002ad55 in std::basic_stringbuf&amp;lt;char, 
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt;, std::allocator&amp;lt;char&amp;gt; &amp;gt;::overflow 
&lt;br&gt;(this=0x7fff5fbff7f8, __c=72) at sstream.tcc:125
&lt;br&gt;#8 &amp;nbsp;0x0000000100029db0 in std::basic_streambuf&amp;lt;char, 
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt; &amp;gt;::xsputn (this=0x7fff5fbff7f8, __s=0x100000e7e 
&lt;br&gt;&amp;quot;Help Me!&amp;quot;, __n=8) at streambuf.tcc:102
&lt;br&gt;#9 &amp;nbsp;0x00007fff806e0ae4 in std::__ostream_write&amp;lt;char, 
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt; &amp;gt; ()
&lt;br&gt;#10 0x00007fff806deb98 in std::__ostream_insert&amp;lt;char, 
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt; &amp;gt; ()
&lt;br&gt;#11 0x00007fff806dec58 in std::operator&amp;lt;&amp;lt; &amp;lt;std::char_traits&amp;lt;char&amp;gt; &amp;gt; ()
&lt;br&gt;#12 0x0000000100000d6b in main () at streamtest.cpp:6
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26281497&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-test--Linking-against-boost_unit_test_framework-causes-double-deletion-in-std%3A%3Aostringstream-tp26281497p26281497.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26281131</id>
	<title>Re: BGL - parallel/distributed</title>
	<published>2009-11-10T02:17:51Z</published>
	<updated>2009-11-10T02:17:51Z</updated>
	<author>
		<name>oslu</name>
	</author>
	<content type="html">You are right, that was what I was missing. Thank you. Anyway, no I can 
&lt;br&gt;compile it and run it, but the program always exits at the line Graph 
&lt;br&gt;g(4) with exit code 0x1. It quits in the inizialization of
&lt;br&gt;mpi_process_group::impl::impl(std::size_t num_headers, std::size_t 
&lt;br&gt;buffer_sz, communicator_type parent_comm)
&lt;br&gt;&amp;nbsp; : comm(parent_comm, boost::mpi::comm_duplicate),
&lt;br&gt;&amp;nbsp; &amp;nbsp; oob_reply_comm(parent_comm, boost::mpi::comm_duplicate),
&lt;br&gt;&amp;nbsp; &amp;nbsp; allocated_tags(boost::mpi::environment::max_tag())
&lt;br&gt;&lt;br&gt;exactly in libs/mpi/src/communicator.cpp 
&lt;br&gt;communicator::communicator(const ...) on the line &amp;nbsp;
&lt;br&gt;BOOST_MPI_CHECK_RESULT(MPI_Comm_dup, (comm, &amp;newcomm));
&lt;br&gt;&lt;br&gt;It doesn't crash or anything, just exits the code &amp;quot;normally&amp;quot; with exit 
&lt;br&gt;code 1.
&lt;br&gt;Do you have any idea what is wrong?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Jeremiah Willcock wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, 9 Nov 2009, Ondrej Sluciak wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ok, I tried the simplest possible example, but just didn't figure out 
&lt;br&gt;&amp;gt;&amp;gt; where the problem is. I am on windows, mpich2 installed, all boost 
&lt;br&gt;&amp;gt;&amp;gt; libs correctly compiled with mpi, but if I do something like
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;lt;boost/graph/use_mpi.hpp&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;lt;boost/graph/distributed/selector.hpp&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;lt;boost/graph/distributed/adjacency_list.hpp&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;lt;boost/graph/distributed/mpi_process_group.hpp&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; void main(){
&lt;br&gt;&amp;gt;&amp;gt; using namespace boost;
&lt;br&gt;&amp;gt;&amp;gt; typedef 
&lt;br&gt;&amp;gt;&amp;gt; adjacency_list&amp;lt;vecS,distributedS&amp;lt;graph::distributed::mpi_process_group, 
&lt;br&gt;&amp;gt;&amp;gt; vecS&amp;gt;, directedS&amp;gt; &amp;nbsp;Graph;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Graph g(4);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; };
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I always get linking problems like:
&lt;br&gt;&amp;gt;&amp;gt; Error &amp;nbsp; &amp;nbsp;7 &amp;nbsp; &amp;nbsp;error LNK2019: unresolved external symbol &amp;quot;void __cdecl 
&lt;br&gt;&amp;gt;&amp;gt; boost::graph::distributed::synchronize(class 
&lt;br&gt;&amp;gt;&amp;gt; boost::graph::distributed::mpi_process_group const &amp;)&amp;quot; 
&lt;br&gt;&amp;gt;&amp;gt; (?synchronize@distributed@graph@boost@@YAXABVmpi_process_group@123@@Z) 
&lt;br&gt;&amp;gt;&amp;gt; referenced in function &amp;quot;public: __thiscall 
&lt;br&gt;&amp;gt;&amp;gt; boost::adjacency_list&amp;lt;struct boost::vecS,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::distributedS&amp;lt;class 
&lt;br&gt;&amp;gt;&amp;gt; boost::graph::distributed::mpi_process_group,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::vecS,struct boost::defaultS&amp;gt;,struct boost::directedS,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::no_property,struct boost::no_property,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::no_property,struct boost::listS&amp;gt;::~adjacency_list&amp;lt;struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::vecS,struct boost::distributedS&amp;lt;class 
&lt;br&gt;&amp;gt;&amp;gt; boost::graph::distributed::mpi_process_group,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::vecS,struct boost::defaultS&amp;gt;,struct boost::directedS,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::no_property,struct boost::no_property,struct 
&lt;br&gt;&amp;gt;&amp;gt; boost::no_property,struct boost::listS&amp;gt;(void)&amp;quot; 
&lt;br&gt;&amp;gt;&amp;gt; (??1?$adjacency_list@UvecS@boost@@U?$distributedS@Vmpi_process_group@distributed@graph@boost@@UvecS@4@UdefaultS@4@@2@UdirectedS@2@Uno_property@2@U52@U52@UlistS@2@@boost@@QAE@XZ) 
&lt;br&gt;&amp;gt;&amp;gt; boostTest2.obj
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think I have included all the necessary libs (including mpi.lib 
&lt;br&gt;&amp;gt;&amp;gt; from mpich directory), so I still don't understand where is the 
&lt;br&gt;&amp;gt;&amp;gt; problem. Does anyone tried distributed graph class?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Are you also including the graph_parallel library? &amp;nbsp;
&lt;br&gt;&amp;gt; Boost.Graph.Parallel is not header-only, unlike almost all of the 
&lt;br&gt;&amp;gt; sequential Boost.Graph library.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- Jeremiah Willcock
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Boost-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26281131&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Dipl.-Ing. Ondrej Sluciak
&lt;br&gt;Room CG-04-06
&lt;br&gt;Vienna University of Technology, Austria
&lt;br&gt;Institute of Communications and Radio-Frequency Engineering
&lt;br&gt;Gusshausstrasse 25-29/389
&lt;br&gt;&lt;a href=&quot;http://www.nt.tuwien.ac.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nt.tuwien.ac.at&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26281131&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/BGL---parallel-distributed-tp26231842p26281131.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26276999</id>
	<title>Re: [Fusion] Views of Associative Sequences</title>
	<published>2009-11-09T17:45:53Z</published>
	<updated>2009-11-09T17:45:53Z</updated>
	<author>
		<name>g-h-d</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There is already a feature request for associative views (ticket 3473). 
&lt;br&gt;&amp;gt; I will get down to it once I am granted write access to the trunk.
&lt;br&gt;&lt;br&gt;I see that the ticket is closed and the changes implemented in the trunk 
&lt;br&gt;: many thanks!
&lt;br&gt;&lt;br&gt;I wonder if I should wait for v1.41 (when : is there an estimate?) or if 
&lt;br&gt;I can already remove joint_view.hpp from my current copy of boost and 
&lt;br&gt;replace it with the new one : do you remember if the changes in 
&lt;br&gt;joint_view standalone?
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26276999&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Fusion--Views-of-Associative-Sequences-tp25914584p26276999.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26276485</id>
	<title>Re: Boost.Asio:</title>
	<published>2009-11-09T16:52:49Z</published>
	<updated>2009-11-09T16:52:49Z</updated>
	<author>
		<name>tiredashell@gmail.com</name>
	</author>
	<content type="html">&lt;div&gt;This is indeed on Windows, and interestingly enough it does appear to work on other platforms (OSX in particular does not give the error). I&amp;#39;m not familiar with &amp;quot;completion ports&amp;quot; but I looked it up and it appears they are created with &amp;quot;CreateIoCompletionPort&amp;quot; which doesn&amp;#39;t exist anywhere in my code. The socket in question is actually created in a fairly normal way:&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;SOCKET new_sock = INVALID_SOCKET;&lt;div&gt;new_sock = accept(svr_sock, (struct sockaddr*)&amp;amp;sin, &amp;amp;size);&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;After that, a few other things are done to the socket -- namely, setting it as non-blocking using ioctlsocket, and using setsockopt for SO_LINGER and SO_OOBINLINE. Any help is greatly appreciated.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 9, 2009 at 3:37 AM, Tore Halvorsen &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26276485&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tore.halvorsen@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
tiredashell &amp;lt;tiredashell &amp;lt;at&amp;gt; &lt;a href=&quot;http://gmail.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;gmail.com&lt;/a&gt;&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt; The error in the subject line occurs when attempting to assign a native&lt;br&gt;
&amp;gt; socket to a Boost.Asio socket. I realize it&amp;#39;s not very helpful since I&amp;#39;m&lt;br&gt;
&amp;gt; not explaining where I am getting nativeSocket, but I was hoping someone&lt;br&gt;
&amp;gt; let me know in general the cause of such an error, since there doesn&amp;#39;t&lt;br&gt;
&amp;gt; appear to be any documentation on it. I am almost positive that it is a&lt;br&gt;
&amp;gt; valid socket, and its integer value is normally around 740.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Is this on windows with native socket already mapped to a completion port?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Boost-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26276485&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26276485&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Boost.Asio%3A-%22The-parameter-is-incorrect%22-when-assigning-native-socket-tp26260290p26276485.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26275946</id>
	<title>Re: at_thread_exit() never getting called</title>
	<published>2009-11-09T15:50:33Z</published>
	<updated>2009-11-09T15:50:33Z</updated>
	<author>
		<name>Peter Dimov-5</name>
	</author>
	<content type="html">cowwoc wrote:
&lt;br&gt;&amp;gt; PS: Is there a more reliable mechanism than atexit() that is
&lt;br&gt;&amp;gt; guaranteed to support more than 32 hooks?
&lt;br&gt;&lt;br&gt;You could wrap the whole thing in a class, and use a static variable of that 
&lt;br&gt;class so that its destructor will be called on exit. Something like (not 
&lt;br&gt;compiled, not tested):
&lt;br&gt;&lt;br&gt;class my_thread
&lt;br&gt;{
&lt;br&gt;private:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; boost::scoped_ptr&amp;lt;boost::thread&amp;gt; pt_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; bool shutdown_request_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; // more per-thread state, if needed
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; void threadproc(); // as before
&lt;br&gt;&lt;br&gt;public:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; my_thread(): shutdown_request_( false ) {}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; void start()
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pt_.reset( new boost::thread( &amp;my_thread::threadproc, this ) );
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ~my_thread()
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( pt_ )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; shutdown_request_ = true;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pt_-&amp;gt;join();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;// ...
&lt;br&gt;&lt;br&gt;static my_thread s_th;
&lt;br&gt;&lt;br&gt;int main()
&lt;br&gt;{
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; s_th.start();
&lt;br&gt;&amp;nbsp; &amp;nbsp; // ...
&lt;br&gt;&lt;br&gt;} // the destructor of s_th should be called here
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26275946&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/at_thread_exit%28%29-never-getting-called-tp26053513p26275946.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26275771</id>
	<title>getting shape of numpy array</title>
	<published>2009-11-09T15:36:16Z</published>
	<updated>2009-11-09T15:36:16Z</updated>
	<author>
		<name>TheLonelyStar</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am trying to interaface a numpy array using boost::python::numeric::array.
&lt;br&gt;&lt;br&gt;void function(numeric::array&amp; a)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tuple shape=extract&amp;lt;tuple&amp;gt;(a.getshape());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; double x;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int i,j;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(i=0;i&amp;lt;shape[0];++i)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(j=0;j&amp;lt;shape[1];++j)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x=extract&amp;lt;double&amp;gt;(a[make_tuple(i,j)]);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Now I had to add
&lt;br&gt;numeric::array::set_module_and_type(&amp;quot;numpy&amp;quot;, &amp;quot;ndarray&amp;quot;);
&lt;br&gt;&lt;br&gt;to the module, hope that was correct.
&lt;br&gt;&lt;br&gt;When I call this function in python, I get:
&lt;br&gt;AttributeError: 'numpy.ndarray' object has no attribute 'getshape'
&lt;br&gt;&lt;br&gt;What is the correct way to do it?
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;Nathan</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-shape-of-numpy-array-tp26275771p26275771.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26273883</id>
	<title>Re: BGL - parallel/distributed</title>
	<published>2009-11-09T13:18:58Z</published>
	<updated>2009-11-09T13:18:58Z</updated>
	<author>
		<name>Jeremiah Willcock</name>
	</author>
	<content type="html">On Mon, 9 Nov 2009, Ondrej Sluciak wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Ok, I tried the simplest possible example, but just didn't figure out where 
&lt;br&gt;&amp;gt; the problem is. I am on windows, mpich2 installed, all boost libs correctly 
&lt;br&gt;&amp;gt; compiled with mpi, but if I do something like
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;lt;boost/graph/use_mpi.hpp&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;lt;boost/graph/distributed/selector.hpp&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;lt;boost/graph/distributed/adjacency_list.hpp&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;lt;boost/graph/distributed/mpi_process_group.hpp&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; void main(){
&lt;br&gt;&amp;gt; using namespace boost;
&lt;br&gt;&amp;gt; typedef 
&lt;br&gt;&amp;gt; adjacency_list&amp;lt;vecS,distributedS&amp;lt;graph::distributed::mpi_process_group, 
&lt;br&gt;&amp;gt; vecS&amp;gt;, directedS&amp;gt; &amp;nbsp;Graph;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Graph g(4);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; };
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I always get linking problems like:
&lt;br&gt;&amp;gt; Error &amp;nbsp; &amp;nbsp;7 &amp;nbsp; &amp;nbsp;error LNK2019: unresolved external symbol &amp;quot;void __cdecl 
&lt;br&gt;&amp;gt; boost::graph::distributed::synchronize(class 
&lt;br&gt;&amp;gt; boost::graph::distributed::mpi_process_group const &amp;)&amp;quot; 
&lt;br&gt;&amp;gt; (?synchronize@distributed@graph@boost@@YAXABVmpi_process_group@123@@Z) 
&lt;br&gt;&amp;gt; referenced in function &amp;quot;public: __thiscall boost::adjacency_list&amp;lt;struct 
&lt;br&gt;&amp;gt; boost::vecS,struct boost::distributedS&amp;lt;class 
&lt;br&gt;&amp;gt; boost::graph::distributed::mpi_process_group,struct boost::vecS,struct 
&lt;br&gt;&amp;gt; boost::defaultS&amp;gt;,struct boost::directedS,struct boost::no_property,struct 
&lt;br&gt;&amp;gt; boost::no_property,struct boost::no_property,struct 
&lt;br&gt;&amp;gt; boost::listS&amp;gt;::~adjacency_list&amp;lt;struct boost::vecS,struct 
&lt;br&gt;&amp;gt; boost::distributedS&amp;lt;class boost::graph::distributed::mpi_process_group,struct 
&lt;br&gt;&amp;gt; boost::vecS,struct boost::defaultS&amp;gt;,struct boost::directedS,struct 
&lt;br&gt;&amp;gt; boost::no_property,struct boost::no_property,struct boost::no_property,struct 
&lt;br&gt;&amp;gt; boost::listS&amp;gt;(void)&amp;quot; 
&lt;br&gt;&amp;gt; (??1?$adjacency_list@UvecS@boost@@U?$distributedS@Vmpi_process_group@distributed@graph@boost@@UvecS@4@UdefaultS@4@@2@UdirectedS@2@Uno_property@2@U52@U52@UlistS@2@@boost@@QAE@XZ) 
&lt;br&gt;&amp;gt; boostTest2.obj
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think I have included all the necessary libs (including mpi.lib from mpich 
&lt;br&gt;&amp;gt; directory), so I still don't understand where is the problem. Does anyone 
&lt;br&gt;&amp;gt; tried distributed graph class?
&lt;/div&gt;&lt;br&gt;Are you also including the graph_parallel library? &amp;nbsp;Boost.Graph.Parallel 
&lt;br&gt;is not header-only, unlike almost all of the sequential Boost.Graph 
&lt;br&gt;library.
&lt;br&gt;&lt;br&gt;-- Jeremiah Willcock
&lt;br&gt;_______________________________________________
&lt;br&gt;Boost-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26273883&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Boost-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.boost.org/mailman/listinfo.cgi/boost-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.boost.org/mailman/listinfo.cgi/boost-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/BGL---parallel-distributed-tp26231842p26273883.html" />
</entry>

</feed>
