<?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[problem mit binary_function]]></title><description><![CDATA[<p>der konstruktor schmiert mir immer ab bevor noch die erste zeile ausgeführt wird...<br />
Liegt das problem hier irgendwo oder wo anders?<br />
main<br />
{<br />
parralel_potential pot(...);<br />
problem_fall(pot);<br />
}<br />
class problem_fall<br />
{<br />
problem_fall(potential_function&amp; pot) { cout &lt;&lt;&quot;wird nich ausgegeben&quot;;...}<br />
};<br />
class potential_function : public std::binary_function&lt;double,double,double&gt;<br />
{<br />
public:<br />
virtual double operator()(double x, double y)=0;<br />
};</p>
<p>class parralel_potential : public potential_function<br />
{<br />
...<br />
virtual double operator()(double x, double y)<br />
{<br />
return x*u+y*v;<br />
}<br />
};</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/267083/problem-mit-binary_function</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 17:20:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/267083.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 May 2010 19:43:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problem mit binary_function on Tue, 18 May 2010 19:43:44 GMT]]></title><description><![CDATA[<p>der konstruktor schmiert mir immer ab bevor noch die erste zeile ausgeführt wird...<br />
Liegt das problem hier irgendwo oder wo anders?<br />
main<br />
{<br />
parralel_potential pot(...);<br />
problem_fall(pot);<br />
}<br />
class problem_fall<br />
{<br />
problem_fall(potential_function&amp; pot) { cout &lt;&lt;&quot;wird nich ausgegeben&quot;;...}<br />
};<br />
class potential_function : public std::binary_function&lt;double,double,double&gt;<br />
{<br />
public:<br />
virtual double operator()(double x, double y)=0;<br />
};</p>
<p>class parralel_potential : public potential_function<br />
{<br />
...<br />
virtual double operator()(double x, double y)<br />
{<br />
return x*u+y*v;<br />
}<br />
};</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1899245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1899245</guid><dc:creator><![CDATA[skibbel]]></dc:creator><pubDate>Tue, 18 May 2010 19:43:44 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit binary_function on Tue, 18 May 2010 19:45:03 GMT]]></title><description><![CDATA[<p>sry hier nochmal formatiert</p>
<pre><code class="language-cpp">main
{
parralel_potential pot(...);
problem_fall bla(pot); &lt;-- absturz ohne das erste zeile des konstruktors ausgeführt wird
}
class problem_fall
{
problem_fall(potential_function&amp; pot) { cout &lt;&lt;&quot;wird nich ausgegeben&quot;;...}
};
class potential_function : public std::binary_function&lt;double,double,double&gt;
{
public:
virtual double operator()(double x, double y)=0;
};

class parralel_potential : public potential_function
{
...
virtual double operator()(double x, double y)
{
return x*u+y*v;
}
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1899246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1899246</guid><dc:creator><![CDATA[skibbel]]></dc:creator><pubDate>Tue, 18 May 2010 19:45:03 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit binary_function on Tue, 18 May 2010 19:48:28 GMT]]></title><description><![CDATA[<p>ahhh sorry idiotischer indextausch in der parameterliste hat den absturz verursacht, deswegen wurd nie die erste zeile ausgeführt.</p>
<p>sry für die störung ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1899249</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1899249</guid><dc:creator><![CDATA[asdasd]]></dc:creator><pubDate>Tue, 18 May 2010 19:48:28 GMT</pubDate></item></channel></rss>