<?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[Dependent type is not a type]]></title><description><![CDATA[<p>Möglichkeit 1:</p>
<pre><code>class iterator : public std::vector&lt;std::string&gt;::iterator{
};
</code></pre>
<p>Möglichkeit 2:</p>
<pre><code>typedef std::vector&lt;std::string&gt;::iterator iterator;
</code></pre>
<p>warum bitte ist das erste richtig und das zweite falsch? was macht das denn für einen unterschied? das erste geht doch, aber beim zweiten meint der compiler den typ nicht zu kennen</p>
<blockquote>
<p>Warning 1 warning C4346: 'std::vector&lt;std::basic_string&lt;_Elem,std::char_traits&lt;_Elem&gt;,std::allocator&lt;_Ty&gt;&gt;,std::allocator&lt;std::basic_string&lt;_Elem,std::char_traits&lt;_Elem&gt;,std::allocator&lt;_Ty&gt;&gt;&gt;&gt;::iterator' : dependent name is not a type f:\programming\projects\_projects 2013\c++\cell library\include\cell\core\fast_tokenizer.h 103 1 AppConsole (Microsoft Visual C++ Compiler Nov 2012 CTP)</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/314927/dependent-type-is-not-a-type</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Apr 2026 18:17:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/314927.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Mar 2013 17:37:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dependent type is not a type on Mon, 18 Mar 2013 17:38:12 GMT]]></title><description><![CDATA[<p>Möglichkeit 1:</p>
<pre><code>class iterator : public std::vector&lt;std::string&gt;::iterator{
};
</code></pre>
<p>Möglichkeit 2:</p>
<pre><code>typedef std::vector&lt;std::string&gt;::iterator iterator;
</code></pre>
<p>warum bitte ist das erste richtig und das zweite falsch? was macht das denn für einen unterschied? das erste geht doch, aber beim zweiten meint der compiler den typ nicht zu kennen</p>
<blockquote>
<p>Warning 1 warning C4346: 'std::vector&lt;std::basic_string&lt;_Elem,std::char_traits&lt;_Elem&gt;,std::allocator&lt;_Ty&gt;&gt;,std::allocator&lt;std::basic_string&lt;_Elem,std::char_traits&lt;_Elem&gt;,std::allocator&lt;_Ty&gt;&gt;&gt;&gt;::iterator' : dependent name is not a type f:\programming\projects\_projects 2013\c++\cell library\include\cell\core\fast_tokenizer.h 103 1 AppConsole (Microsoft Visual C++ Compiler Nov 2012 CTP)</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2307684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2307684</guid><dc:creator><![CDATA[gamer8o4]]></dc:creator><pubDate>Mon, 18 Mar 2013 17:38:12 GMT</pubDate></item><item><title><![CDATA[Reply to Dependent type is not a type on Mon, 18 Mar 2013 17:48:11 GMT]]></title><description><![CDATA[<p>Sicher, dass es an der Zeile liegt? Klingt mir irgendwie so, als ob das ganze sich im Kontext eines template abspielt (fehlt wo ein typename)!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2307688</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2307688</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Mon, 18 Mar 2013 17:48:11 GMT</pubDate></item><item><title><![CDATA[Reply to Dependent type is not a type on Mon, 18 Mar 2013 17:48:24 GMT]]></title><description><![CDATA[<p>So freistehend sollte das eigentlich kein Fehler sein. Ist das wirklich 1:1 der Code? Die Fehlermeldung deutet darauf hin, dass hier eigentlich ein Template vorliegt und das nötige <code>typename</code> vor einem Ausdruck a la <code>std::vector&lt;T&gt;::iterator</code> vergessen wurde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2307691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2307691</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 18 Mar 2013 17:48:24 GMT</pubDate></item><item><title><![CDATA[Reply to Dependent type is not a type on Mon, 18 Mar 2013 17:51:49 GMT]]></title><description><![CDATA[<pre><code>namespace cell{
namespace core{

	// this class can be used to tokenize strings
	// -&gt; invocation: char_type must be a char, wchar_t, uchar16_t, uchar32_t or any similar character-type
	//				  separator has to follow the standart separator-interface defined in 'separator.h'
	template&lt;class char_type, class separator_type = char_separator&lt;char_type&gt; &gt;
	class fast_tokenizer{
	public: 
		typedef std::basic_string&lt;char_type, std::char_traits&lt;char_type&gt;, std::allocator&lt;char_type&gt; &gt; value_type;
		typedef std::vector&lt;value_type/*, std::allocator&lt;value_type&gt; */&gt; data_type;

	private: 
		data_type vec_data;
		separator_type sep;

	public:
		/* construction */
		fast_tokenizer()
			: vec_data()
			, sep()
		{}

		fast_tokenizer(const separator_type&amp; token_sep, const value_type&amp; str)
			: vec_data()
			, sep(token_sep)
		{
			set_data(str);
		}

	public:
		/* modifiers */
		void set_data(const value_type&amp; str){
			core::tokenizer&lt;char_type,separator_type&gt; tok(str, sep);
			for(auto it = tok.begin(); it != tok.end(); ++it)
				vec_data.push_back(*it);
		}
		void clear(){
			//sep.clear();
			vec_data.clear();
		}

		/* information */
		const separator_type&amp; separator() const{
			return sep;
		}
		const std::vector&lt;value_type&gt;&amp; data() const{
			return data;
		}
		const value_type string() const{
			value_type ret;
			for(auto i : vec_data)
				ret += i;
			return ret;
		}
	public: 
		//class iterator : public data_type::iterator{
		//};// iterator
		typedef data_type::iterator iterator;
	public:
		/* iterator: helper-funtions */
		iterator begin(){
			return vec_data.begin();
		}
		iterator end(){
			return vec_data.end();
		}
		value_type front(){
			return *begin();
		}
		value_type back(){
			return *(end()-1);
		}
	};// c: tokenizer
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2307692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2307692</guid><dc:creator><![CDATA[gamer8o4]]></dc:creator><pubDate>Mon, 18 Mar 2013 17:51:49 GMT</pubDate></item><item><title><![CDATA[Reply to Dependent type is not a type on Mon, 18 Mar 2013 17:54:26 GMT]]></title><description><![CDATA[<p>Jo, das is natürlich was völlig anderes als der Code, den du in deinem Ausgangsposting hattest, da fehlt natürlich überall das Schlüsselwort typename...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2307693</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2307693</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Mon, 18 Mar 2013 17:54:26 GMT</pubDate></item><item><title><![CDATA[Reply to Dependent type is not a type on Mon, 18 Mar 2013 17:56:09 GMT]]></title><description><![CDATA[<blockquote>
<p>da fehlt natürlich überall das Schlüsselwort typename...</p>
</blockquote>
<p>tut mir leid, ich kann dir nicht folgen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":/"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2307695</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2307695</guid><dc:creator><![CDATA[gamer8o4]]></dc:creator><pubDate>Mon, 18 Mar 2013 17:56:09 GMT</pubDate></item><item><title><![CDATA[Reply to Dependent type is not a type on Mon, 18 Mar 2013 18:02:25 GMT]]></title><description><![CDATA[<p>gamer8o4 schrieb:</p>
<blockquote>
<blockquote>
<p>da fehlt natürlich überall das Schlüsselwort typename...</p>
</blockquote>
<p>tut mir leid, ich kann dir nicht folgen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":/"
      alt="😕"
    /></p>
</blockquote>
<p><a href="http://pages.cs.wisc.edu/~driscoll/typename.html" rel="nofollow">http://pages.cs.wisc.edu/~driscoll/typename.html</a><br />
Bitte vollständig lesen und verstehen. Wichtige Lektion.</p>
<p>Außerdem in Zukunft bitte den dritten Link in meiner Signatur befolgen. Das hätte eine Menge unnötiges Rätselraten vermieden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2307698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2307698</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 18 Mar 2013 18:02:25 GMT</pubDate></item><item><title><![CDATA[Reply to Dependent type is not a type on Mon, 18 Mar 2013 18:02:47 GMT]]></title><description><![CDATA[<p>wird gemacht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2307699</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2307699</guid><dc:creator><![CDATA[gamer8o4]]></dc:creator><pubDate>Mon, 18 Mar 2013 18:02:47 GMT</pubDate></item><item><title><![CDATA[Reply to Dependent type is not a type on Mon, 18 Mar 2013 18:25:13 GMT]]></title><description><![CDATA[<p>Großartiger link, du hattest recht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2307706</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2307706</guid><dc:creator><![CDATA[gamer8o4]]></dc:creator><pubDate>Mon, 18 Mar 2013 18:25:13 GMT</pubDate></item></channel></rss>