<?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[error C2248]]></title><description><![CDATA[<p>tag.</p>
<p>ich habe hier ein programm, was schon recht &quot;groß&quot; ist. auf einmal taucht nun folgende fehlermeldung auf:</p>
<blockquote>
<p>error C2248: &quot;std::basic_ios&lt;_Elem,_Traits&gt;::basic_ios&quot;: Kein Zugriff auf private Member, dessen Deklaration in der std::basic_ios&lt;_Elem,_Traits&gt;-Klasse erfolgte.</p>
</blockquote>
<p>ich bin nun etwas überfordert, was mir das sagen soll, oder wo ich am besten nachschaue, wo mein fehler liegt, denn wenn ich auf den fehler im ausgabefenster klicke, dann öffnet sich die sstream headerdatei.</p>
<p>hat vielleicht jemand eine ahnung, wonach ich in meinem code ausschau halten sollte? was könnte eine mögliche fehlerquelle sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/151330/error-c2248</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 08:47:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/151330.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Jun 2006 11:20:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to error C2248 on Sun, 25 Jun 2006 11:20:45 GMT]]></title><description><![CDATA[<p>tag.</p>
<p>ich habe hier ein programm, was schon recht &quot;groß&quot; ist. auf einmal taucht nun folgende fehlermeldung auf:</p>
<blockquote>
<p>error C2248: &quot;std::basic_ios&lt;_Elem,_Traits&gt;::basic_ios&quot;: Kein Zugriff auf private Member, dessen Deklaration in der std::basic_ios&lt;_Elem,_Traits&gt;-Klasse erfolgte.</p>
</blockquote>
<p>ich bin nun etwas überfordert, was mir das sagen soll, oder wo ich am besten nachschaue, wo mein fehler liegt, denn wenn ich auf den fehler im ausgabefenster klicke, dann öffnet sich die sstream headerdatei.</p>
<p>hat vielleicht jemand eine ahnung, wonach ich in meinem code ausschau halten sollte? was könnte eine mögliche fehlerquelle sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1085013</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1085013</guid><dc:creator><![CDATA[Hans Wurst]]></dc:creator><pubDate>Sun, 25 Jun 2006 11:20:45 GMT</pubDate></item><item><title><![CDATA[Reply to error C2248 on Sun, 25 Jun 2006 11:22:35 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Du könntest im Callstack bis zu einer Funktion gehen, die du selber geschrieben hast. Dann veröffentlichst du diesen Code hier und viel Leute werden versuchen dir zu helfen.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1085015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1085015</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 25 Jun 2006 11:22:35 GMT</pubDate></item><item><title><![CDATA[Reply to error C2248 on Sun, 25 Jun 2006 11:25:19 GMT]]></title><description><![CDATA[<p>zeig doch mal die zeile, in der der fehler auftaucht (mit allem drumherum, soweit relevant).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1085017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1085017</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Sun, 25 Jun 2006 11:25:19 GMT</pubDate></item><item><title><![CDATA[Reply to error C2248 on Sun, 25 Jun 2006 11:38:39 GMT]]></title><description><![CDATA[<p>okay,<br />
habe den fehler lokalisieren können und daraus ein kleines übersichtliches programm gemacht, der den gleichen fehler enthält. damit kann man hoffentlich was anfangen.<br />
DANKE.</p>
<pre><code class="language-cpp">#include &lt;conio.h&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;
#include &lt;fstream&gt;
#include &lt;sstream&gt;

using namespace std;

void TEST (std::stringstream);

int main()
{
	double a;
	std::stringstream filename;
    a = sqrt(4.0);
	filename &lt;&lt; &quot;datei&quot; &lt;&lt; a &lt;&lt; &quot;.txt&quot;;
	std::ofstream myfile( filename.str().c_str(), std::ios_base::out | std::ios_base::app );
	myfile.close();

	TEST(filename);

    return 0;
}

void TEST (std::stringstream filename)
{

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1085023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1085023</guid><dc:creator><![CDATA[Hans Wurst]]></dc:creator><pubDate>Sun, 25 Jun 2006 11:38:39 GMT</pubDate></item><item><title><![CDATA[Reply to error C2248 on Sun, 25 Jun 2006 11:44:41 GMT]]></title><description><![CDATA[<p>wie alle streams ist stringstream nicht kopierbar (der copyctor von ios_base ist private) und kann folglich nicht als funktionsargument benutzt werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1085030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1085030</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Sun, 25 Jun 2006 11:44:41 GMT</pubDate></item><item><title><![CDATA[Reply to error C2248 on Sun, 25 Jun 2006 13:08:24 GMT]]></title><description><![CDATA[<p>Er könnte ja eine Refrenz nehmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1085103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1085103</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Sun, 25 Jun 2006 13:08:24 GMT</pubDate></item><item><title><![CDATA[Reply to error C2248 on Sun, 25 Jun 2006 13:16:19 GMT]]></title><description><![CDATA[<p>HABS JETZT SO GEMACHT:</p>
<pre><code class="language-cpp">int main()
{
    double a;
    std::stringstream filename;
    a = sqrt(4.0);
    filename &lt;&lt; &quot;datei&quot; &lt;&lt; a &lt;&lt; &quot;.txt&quot;;
    std::ofstream myfile( filename.str().c_str(), std::ios_base::out | std::ios_base::app );
    myfile.close();

    TEST(filename);

    return 0;
}

void TEST (const char *buf)
{

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1085111</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1085111</guid><dc:creator><![CDATA[Hans Wurst]]></dc:creator><pubDate>Sun, 25 Jun 2006 13:16:19 GMT</pubDate></item></channel></rss>