<?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[boost::disable_if fehler]]></title><description><![CDATA[<p>Ich bekomme bei folgender funktion einen Fehler wenn ich sie mit std::string aufrufe:</p>
<pre><code class="language-cpp">template&lt; typename T &gt;
T get( const std::string&amp; name, typename boost::disable_if&lt; boost::is_same&lt; T, std::string &gt; &gt;::type* p = 0 )
{
}
</code></pre>
<p>Fehler:</p>
<blockquote>
<p>error C2770: Ungültiges explizites Vorlagenargument(e) für 'T get(const std::string&amp;,boost::disable_if&lt;boost::is_same&lt;ValueType,std::string&gt;&gt;::type *)'</p>
</blockquote>
<p>Die Beispiele in der boost doku sehen genauso aus, daher verstehe ich nicht was hier falsch sein soll, könnt ihr mich aufklären?</p>
<p>Mein Compiler ist der vc7.1</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/157572/boost-disable_if-fehler</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 02:33:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/157572.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Aug 2006 14:55:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to boost::disable_if fehler on Sun, 27 Aug 2006 14:55:20 GMT]]></title><description><![CDATA[<p>Ich bekomme bei folgender funktion einen Fehler wenn ich sie mit std::string aufrufe:</p>
<pre><code class="language-cpp">template&lt; typename T &gt;
T get( const std::string&amp; name, typename boost::disable_if&lt; boost::is_same&lt; T, std::string &gt; &gt;::type* p = 0 )
{
}
</code></pre>
<p>Fehler:</p>
<blockquote>
<p>error C2770: Ungültiges explizites Vorlagenargument(e) für 'T get(const std::string&amp;,boost::disable_if&lt;boost::is_same&lt;ValueType,std::string&gt;&gt;::type *)'</p>
</blockquote>
<p>Die Beispiele in der boost doku sehen genauso aus, daher verstehe ich nicht was hier falsch sein soll, könnt ihr mich aufklären?</p>
<p>Mein Compiler ist der vc7.1</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1125434</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1125434</guid><dc:creator><![CDATA[thomas r.]]></dc:creator><pubDate>Sun, 27 Aug 2006 14:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to boost::disable_if fehler on Sun, 27 Aug 2006 14:56:42 GMT]]></title><description><![CDATA[<p>Die richtige Fehlermeldung:</p>
<blockquote>
<p>error C2770: Ungültiges explizites Vorlagenargument(e) für 'T get(const std::string&amp;,boost::disable_if&lt;boost::is_same&lt;T,std::string&gt;&gt;::type *)'</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1125435</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1125435</guid><dc:creator><![CDATA[thomas r.]]></dc:creator><pubDate>Sun, 27 Aug 2006 14:56:42 GMT</pubDate></item><item><title><![CDATA[Reply to boost::disable_if fehler on Sun, 27 Aug 2006 15:15:25 GMT]]></title><description><![CDATA[<p>Hat sich erledigt, die spezialisierung für std::string hat einen const std::string&amp; zurückgegeben statt by value wie der Rest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1125447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1125447</guid><dc:creator><![CDATA[thomas r.]]></dc:creator><pubDate>Sun, 27 Aug 2006 15:15:25 GMT</pubDate></item></channel></rss>