<?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[XXX::value_type is implicitly a typename -implicit typename is deprecated]]></title><description><![CDATA[<pre><code class="language-cpp">template&lt; typename T &gt;
class CbVectorAllocator{  
public:
   typedef typename CbVector&lt;T&gt;::value_type          value_type;
   typedef typename CbVector&lt;value_type&gt;::size_type  size_type;
public:
   CbVectorAllocator() {}
   virtual ~CbVectorAllocator() {}
    bool alloc(  CbVector&lt; value_type &gt;&amp; src
              , const size_type&amp; dataSize 
              , const value_type&amp; value=value_type() ) = 0;
...
};

template&lt; typename T &gt;
class CbVectorAllocatorStd : public CbVectorAllocator&lt;T&gt;
{
public:
   CbVectorAllocatorStd() : CbVectorAllocator&lt;value_type&gt;() 
   {

   }
   /*==========================================================*/
   bool alloc(  CbVector&lt; value_type &gt;&amp; src
              , const size_type&amp; dataSize 
              , const value_type&amp; value=value_type() )
   {
      return this-&gt;resize(src,dataSize,value);   
   }
...
};
</code></pre>
<p>hier erhalte ich golgende warnung beim gcc3.44</p>
<pre><code>warning: 'CbVectorAllocatorStd&lt;T&gt;::value_type' 
         is implicitly a typename
warning: implicit typename is deprecated, 
         please see the documentation for details10:42:54
</code></pre>
<p>muss ich in der abgeleiteten Klasse ebenfalls die typedefs setzen???<br />
oder am ende in der abgeleiteten klasse immer &quot;typename value_type&quot; verwenden (was nict gerade zur übersichtlichkeit beisteuert). was sagt denn da der std?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/205249/xxx-value_type-is-implicitly-a-typename-implicit-typename-is-deprecated</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 23:44:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/205249.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Feb 2008 09:45:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to XXX::value_type is implicitly a typename -implicit typename is deprecated on Tue, 12 Feb 2008 09:57:28 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">template&lt; typename T &gt;
class CbVectorAllocator{  
public:
   typedef typename CbVector&lt;T&gt;::value_type          value_type;
   typedef typename CbVector&lt;value_type&gt;::size_type  size_type;
public:
   CbVectorAllocator() {}
   virtual ~CbVectorAllocator() {}
    bool alloc(  CbVector&lt; value_type &gt;&amp; src
              , const size_type&amp; dataSize 
              , const value_type&amp; value=value_type() ) = 0;
...
};

template&lt; typename T &gt;
class CbVectorAllocatorStd : public CbVectorAllocator&lt;T&gt;
{
public:
   CbVectorAllocatorStd() : CbVectorAllocator&lt;value_type&gt;() 
   {

   }
   /*==========================================================*/
   bool alloc(  CbVector&lt; value_type &gt;&amp; src
              , const size_type&amp; dataSize 
              , const value_type&amp; value=value_type() )
   {
      return this-&gt;resize(src,dataSize,value);   
   }
...
};
</code></pre>
<p>hier erhalte ich golgende warnung beim gcc3.44</p>
<pre><code>warning: 'CbVectorAllocatorStd&lt;T&gt;::value_type' 
         is implicitly a typename
warning: implicit typename is deprecated, 
         please see the documentation for details10:42:54
</code></pre>
<p>muss ich in der abgeleiteten Klasse ebenfalls die typedefs setzen???<br />
oder am ende in der abgeleiteten klasse immer &quot;typename value_type&quot; verwenden (was nict gerade zur übersichtlichkeit beisteuert). was sagt denn da der std?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1454199</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1454199</guid><dc:creator><![CDATA[muffmolch]]></dc:creator><pubDate>Tue, 12 Feb 2008 09:57:28 GMT</pubDate></item><item><title><![CDATA[Reply to XXX::value_type is implicitly a typename -implicit typename is deprecated on Tue, 12 Feb 2008 11:33:55 GMT]]></title><description><![CDATA[<p>okay. hab das ganze jetzt mit dem intel 10.1 compile rund dem cl des 2005er und 2008er getestet mit höchster warning stufe... da kommtnichts.. bei gelegenheit werde ich das noch mit dem gcc 4.x testen.</p>
<p>aber generell: ist es nicht iso konform?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1454276</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1454276</guid><dc:creator><![CDATA[muffmolch]]></dc:creator><pubDate>Tue, 12 Feb 2008 11:33:55 GMT</pubDate></item><item><title><![CDATA[Reply to XXX::value_type is implicitly a typename -implicit typename is deprecated on Tue, 12 Feb 2008 12:21:42 GMT]]></title><description><![CDATA[<p>value_type und size_type sind abhängige namen. also</p>
<pre><code class="language-cpp">typename CbVectorAllocatorStd::value_type
//oder
typename CbVectorAllocator&lt;T&gt;::value_type
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1454313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1454313</guid><dc:creator><![CDATA[queer_boy]]></dc:creator><pubDate>Tue, 12 Feb 2008 12:21:42 GMT</pubDate></item><item><title><![CDATA[Reply to XXX::value_type is implicitly a typename -implicit typename is deprecated on Tue, 12 Feb 2008 12:28:57 GMT]]></title><description><![CDATA[<p>Hallo,<br />
das ist das &quot;Dependent-Base&quot;-Problem. Siehe dazu:<br />
<a href="http://www.comeaucomputing.com/techtalk/templates/#whymembernotfound" rel="nofollow">http://www.comeaucomputing.com/techtalk/templates/#whymembernotfound</a></p>
<p>Kurz: Unqualifizierte Namen werden niemals in abhängigen Basisklassen, wie CbVectorAllocator&lt;T&gt; eine ist, gesucht.</p>
<p>Du musst in der abgeleiteten Klasse also entweder qualifizieren oder aber die typedefs wiederholen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1454323</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1454323</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Tue, 12 Feb 2008 12:28:57 GMT</pubDate></item><item><title><![CDATA[Reply to XXX::value_type is implicitly a typename -implicit typename is deprecated on Tue, 12 Feb 2008 12:44:48 GMT]]></title><description><![CDATA[<p>&quot;Dependent-Base&quot;-Problem... man lernt halt nie aus.<br />
Und das tritt nur bei template-Basisklassen auf. Das auf der verlinkten Seite angebene Beispiel ist da sehr schoen.</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1454334</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1454334</guid><dc:creator><![CDATA[muffmolch]]></dc:creator><pubDate>Tue, 12 Feb 2008 12:44:48 GMT</pubDate></item></channel></rss>