<?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[Private struct mit using zugänglich machen]]></title><description><![CDATA[<p>hi!</p>
<p>Ist es normal, dass man das machen kann (VS2013)? Findet ihr das problematisch?</p>
<pre><code>class Test
{
	struct Test2
	{
		;
	};
};

//using TTest2 = Test::Test2; // inaccessible

template&lt;class&gt;
using TTest2 = Test::Test2;

int main()
{
	//Test::Test2 test2; // inaccessible

	TTest2&lt;int&gt; test2; // OK
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/324703/private-struct-mit-using-zugänglich-machen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 13:24:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/324703.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Mar 2014 10:42:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Fri, 28 Mar 2014 10:42:50 GMT]]></title><description><![CDATA[<p>hi!</p>
<p>Ist es normal, dass man das machen kann (VS2013)? Findet ihr das problematisch?</p>
<pre><code>class Test
{
	struct Test2
	{
		;
	};
};

//using TTest2 = Test::Test2; // inaccessible

template&lt;class&gt;
using TTest2 = Test::Test2;

int main()
{
	//Test::Test2 test2; // inaccessible

	TTest2&lt;int&gt; test2; // OK
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2391603</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391603</guid><dc:creator><![CDATA[mhat]]></dc:creator><pubDate>Fri, 28 Mar 2014 10:42:50 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Fri, 28 Mar 2014 11:38:30 GMT]]></title><description><![CDATA[<p>Also sowohl der MSVC als auch Ideone schlucken das.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391610</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Fri, 28 Mar 2014 11:38:30 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Fri, 28 Mar 2014 12:51:52 GMT]]></title><description><![CDATA[<p>Ich denke kaum, dass das erwünscht ist. Dass die Zugriffsspezifizierer so umgangen werden, ist in der Tat problematisch.</p>
<p>Es dürfte sich um Compilerbugs oder evtl. sogar Fehler/unzureichende Spezifikation im Standard handeln.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391615</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Fri, 28 Mar 2014 12:51:52 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Sat, 29 Mar 2014 12:44:47 GMT]]></title><description><![CDATA[<p>Das wird wohl ein Compiler-Fehler sein, in MSVC, Clang und GCC - für Aliastemplates ist etwas derartiges definitiv <strong>nicht</strong> vorgesehen.</p>
<blockquote>
<p>Fehler/unzureichende Spezifikation im Standard handeln.</p>
</blockquote>
<p>Unmöglich. Siehe</p>
<blockquote>
<p>Access control is applied uniformly to all names, whether the names are referred to from declarations or expressions.<br />
[ Note: Access control applies to names nominated by friend declarations (11.3) and using-declarations (7.3.3). — end note ]</p>
</blockquote>
<p>Offensichtlich fällt die Deklaration eines Aliastemplates unter diese Beschreibung, demnach sollte das wie erwartet ill-formed sein.<br />
Der Bug-Report ist <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60705" rel="nofollow">abgesandt</a>.</p>
<p>Das einzige, was mich stört, ist, dass gleich die drei interessantesten Compiler das schlucken, GCC, Clang und VC++...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391727</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391727</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Sat, 29 Mar 2014 12:44:47 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Sat, 29 Mar 2014 12:59:55 GMT]]></title><description><![CDATA[<p>Arcoth schrieb:</p>
<blockquote>
<p>Das einzige, was mich stört, ist, dass gleich die drei interessantesten Compiler das schlucken, GCC, Clang und VC++...</p>
</blockquote>
<p>Hat jemand nen Intel Compiler zur Hand, der das mal kurz testet?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391730</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391730</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Sat, 29 Mar 2014 12:59:55 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Sat, 29 Mar 2014 13:14:28 GMT]]></title><description><![CDATA[<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>Arcoth schrieb:</p>
<blockquote>
<p>Das einzige, was mich stört, ist, dass gleich die drei interessantesten Compiler das schlucken, GCC, Clang und VC++...</p>
</blockquote>
<p>Hat jemand nen Intel Compiler zur Hand, der das mal kurz testet?</p>
</blockquote>
<p>Ich nicht, aber godbolt:<br />
<a href="http://goo.gl/yNC97E" rel="nofollow">http://goo.gl/yNC97E</a><br />
[url]<a href="http://gcc.godbolt.org/#%7B%22version%22%3A3%2C%22filterAsm%22%3A%7B%22labels%22%3Atrue%2C%22directives%22%3Atrue%2C%22intel%22%3Atrue%7D%2C%22compilers%22%3A%5B%7B%22sourcez%22%3A%22FAYwNghgzlAECCwDewCQUAuAnAriDsAQrEgL4DcwFwwGApgLYAOk9APONFAHzA5QBLAHYBzWAGFYAXgQAuWYXKwA9MoRgsdCABMAnrAwALOrG11OWCBgEB7IbBsAzA4YFwIYAdAOMWVk26wAmBgALSONlgMdNo0wgQMEMIAFACUyGjibPDcsCAAjJSoWfG5IABMlKRAA%22%2C%22compiler%22%3A%22%2Fopt%2Fintel%2Fbin%2Ficc%22%2C%22options%22%3A%22-O3%20-std%3Dc%2B%2B0x%22%7D%5D" rel="nofollow">http://gcc.godbolt.org/#{&quot;version&quot;%3A3%2C&quot;filterAsm&quot;%3A{&quot;labels&quot;%3Atrue%2C&quot;directives&quot;%3Atrue%2C&quot;intel&quot;%3Atrue}%2C&quot;compilers&quot;%3A[{&quot;sourcez&quot;%3A&quot;FAYwNghgzlAECCwDewCQUAuAnAriDsAQrEgL4DcwFwwGApgLYAOk9APONFAHzA5QBLAHYBzWAGFYAXgQAuWYXKwA9MoRgsdCABMAnrAwALOrG11OWCBgEB7IbBsAzA4YFwIYAdAOMWVk26wAmBgALSONlgMdNo0wgQMEMIAFACUyGjibPDcsCAAjJSoWfG5IABMlKRAA&quot;%2C&quot;compiler&quot;%3A&quot;%2Fopt%2Fintel%2Fbin%2Ficc&quot;%2C&quot;options&quot;%3A&quot;-O3 -std%3Dc%2B%2B0x&quot;}]</a>}[/url]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391731</guid><dc:creator><![CDATA[godbold]]></dc:creator><pubDate>Sat, 29 Mar 2014 13:14:28 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Sat, 29 Mar 2014 13:38:17 GMT]]></title><description><![CDATA[<blockquote>
<p>allowed for cfront compatibility</p>
</blockquote>
<p>Was heißt denn das? Cfront ist doch schon ewig her?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391733</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391733</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Sat, 29 Mar 2014 13:38:17 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Sat, 29 Mar 2014 14:03:25 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <a href="https://connect.microsoft.com/VisualStudio/feedback/details/843054/c-11-alias-templates-allow-access-to-private-nested-types" rel="nofollow">Bugreport auf Microsoft Connect</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391738</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391738</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sat, 29 Mar 2014 14:03:25 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Sun, 30 Mar 2014 12:29:29 GMT]]></title><description><![CDATA[<p><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1554" rel="nofollow">http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1554</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391883</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391883</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Sun, 30 Mar 2014 12:29:29 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Sun, 30 Mar 2014 12:37:05 GMT]]></title><description><![CDATA[<p>Das würde zumindest erklären, warum sich hier alle Compiler konsistent verhalten.</p>
<p>Allerdings gehe ich stark davon aus, dass der Standard entsprechend korrigiert wird, dann wären unsere Bugreports doch gerechtfertigt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
(Davon abgesehen, dass ich als Compilerschreiber Unklarheiten so auslegen würde, dass die dem erwarteten Verhalten entsprechen)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391885</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 30 Mar 2014 12:37:05 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Sun, 30 Mar 2014 13:38:48 GMT]]></title><description><![CDATA[<p>Ist eigentlich</p>
<pre><code class="language-cpp">template&lt;class&gt;
struct TTest3 {
  typedef Test::Test2 type;
};
</code></pre>
<p>erlaubt? g++ und icc lassen es durch, clang nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391891</guid><dc:creator><![CDATA[Inko Sistent]]></dc:creator><pubDate>Sun, 30 Mar 2014 13:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to Private struct mit using zugänglich machen on Sun, 30 Mar 2014 13:54:48 GMT]]></title><description><![CDATA[<blockquote>
<p>erlaubt?</p>
</blockquote>
<p>Natürlich nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2391892</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2391892</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Sun, 30 Mar 2014 13:54:48 GMT</pubDate></item></channel></rss>