<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[boost::bind in map stecken]]></title><description><![CDATA[<p>Wie muss ich das genau anstellen ?</p>
<p>Ich habe eine Klasse, die verschiedene Funktionen hat,<br />
welche alle die selbe Syntax besitzen:<br />
myclass::myfunc(const stringstream&amp; stream);<br />
Die Klasse soll nun eine map bekommen, die diese<br />
als Function/Methodpointer aufnimmt:<br />
std::map<a href="std::string,?boost::bind?" rel="nofollow">std::string,?boost::bind?</a> mymap;<br />
Wie muss ich da nun bind deklarieren ?</p>
<p>phlox</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/121623/boost-bind-in-map-stecken</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 18:25:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/121623.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Sep 2005 06:57:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to boost::bind in map stecken on Mon, 26 Sep 2005 06:57:23 GMT]]></title><description><![CDATA[<p>Wie muss ich das genau anstellen ?</p>
<p>Ich habe eine Klasse, die verschiedene Funktionen hat,<br />
welche alle die selbe Syntax besitzen:<br />
myclass::myfunc(const stringstream&amp; stream);<br />
Die Klasse soll nun eine map bekommen, die diese<br />
als Function/Methodpointer aufnimmt:<br />
std::map<a href="std::string,?boost::bind?" rel="nofollow">std::string,?boost::bind?</a> mymap;<br />
Wie muss ich da nun bind deklarieren ?</p>
<p>phlox</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880157</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880157</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Mon, 26 Sep 2005 06:57:23 GMT</pubDate></item><item><title><![CDATA[Reply to boost::bind in map stecken on Mon, 26 Sep 2005 07:00:12 GMT]]></title><description><![CDATA[<p>warum nicht boost::function in der map speichern?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880161</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880161</guid><dc:creator><![CDATA[function]]></dc:creator><pubDate>Mon, 26 Sep 2005 07:00:12 GMT</pubDate></item><item><title><![CDATA[Reply to boost::bind in map stecken on Mon, 26 Sep 2005 07:00:28 GMT]]></title><description><![CDATA[<p>das verrate ich nur, wenn du verrätst, warum du nicht einfach methodenzeiger nimmst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880162</guid><dc:creator><![CDATA[volkardus]]></dc:creator><pubDate>Mon, 26 Sep 2005 07:00:28 GMT</pubDate></item><item><title><![CDATA[Reply to boost::bind in map stecken on Mon, 26 Sep 2005 07:03:18 GMT]]></title><description><![CDATA[<p>volkardus schrieb:</p>
<blockquote>
<p>das verrate ich nur, wenn du verrätst, warum du nicht einfach methodenzeiger nimmst.</p>
</blockquote>
<p>Würde es auch tun. hauptsache es funktioniert, wär mir sogar recht, wenn<br />
ich nicht boost benötige für sowas. (Für Threads nehm ich es dann wieder ;))</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880166</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880166</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Mon, 26 Sep 2005 07:03:18 GMT</pubDate></item><item><title><![CDATA[Reply to boost::bind in map stecken on Mon, 26 Sep 2005 07:13:54 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;map&gt;
using namsepache std;

struct Foo{
	int square(int x){
		return x*x;
	}
	int half(int x){
		return x/2;
	}
};

typedef int(Foo::*fptr)(int);

int main(){
	map&lt;string,fptr&gt; m;
	m[&quot;s&quot;]=&amp;Foo::square;
	m[&quot;h&quot;]=&amp;Foo::half;
	Foo f;
	cout&lt;&lt;(f.*m[&quot;s&quot;])(10)&lt;&lt;endl;
	cout&lt;&lt;(f.*m[&quot;h&quot;])(10)&lt;&lt;endl;
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/880168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880168</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Mon, 26 Sep 2005 07:13:54 GMT</pubDate></item><item><title><![CDATA[Reply to boost::bind in map stecken on Mon, 26 Sep 2005 07:22:41 GMT]]></title><description><![CDATA[<p>hm, wenns so einfach ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f635.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--dizzy_face"
      title="%)"
      alt="😵"
    /></p>
<p>thx.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880170</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880170</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Mon, 26 Sep 2005 07:22:41 GMT</pubDate></item></channel></rss>