Boost C++ Libraries: Ticket #3575: On Borland-Error E2029 enable_if_does_not_work_on_this_compiler<void> must be a class or a structure previously define https://svn.boost.org/trac10/ticket/3575 <p> Hello </p> <p> I'm working with Boost on Borland® Developer Studio for Microsoft® Windows™ Version 10.0.2288.42451 and I encounter this error : </p> <p> Error E2029 enable_if_does_not_work_on_this_compiler&lt;void&gt; must be a class or a structure previously define </p> <p> In the file enable_if.hpp at line 100 </p> <p> template &lt;class Cond, class T = detail::enable_if_default_T&gt; </p> <blockquote> <p> struct enable_if : enable_if_does_not_work_on_this_compiler&lt;T&gt; { }; </p> </blockquote> <p> As you can see Borland can't use SFINAE and so used the part of the code which doesn't use it. But even in a new projet without any code, only #include &lt;boost/filesystem.hpp&gt; the error happen. I found nothing on the web about it, so if you know the problem I will be glad to know it. </p> <p> Thank you. </p> <p> Coralie VESSIERES </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3575 Trac 1.4.3 coralie.vessieres@… Thu, 29 Oct 2009 14:16:08 GMT attachment set https://svn.boost.org/trac10/ticket/3575 https://svn.boost.org/trac10/ticket/3575 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bug.rar</span> </li> </ul> Ticket Steven Watanabe Thu, 29 Oct 2009 16:18:15 GMT component changed; owner set https://svn.boost.org/trac10/ticket/3575#comment:1 https://svn.boost.org/trac10/ticket/3575#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Beman Dawes</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">filesystem</span> </li> </ul> <p> What version of the compiler is this? </p> <p> The tests at <a href="http://www.boost.org/development/tests/trunk/developer/filesystem.html">http://www.boost.org/development/tests/trunk/developer/filesystem.html</a> don't show this error. </p> Ticket coralie.vessieres@… Fri, 30 Oct 2009 08:27:50 GMT <link>https://svn.boost.org/trac10/ticket/3575#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3575#comment:2</guid> <description> <p> I don't quite understand your table, which one represent Borland 2006 between those </p> <p> borland- 5.9.3 borland- 6.1.3 borland- 6.2.0 borland- cb2009 borland- cb2010 </p> <p> The compiler version is 5.82. </p> <p> Thank you for your quick answer. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Sun, 06 Dec 2009 17:25:25 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3575#comment:3 https://svn.boost.org/trac10/ticket/3575#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Boost.Filesystem requires a compiler that supports SFINAE. There is no intent to ever support compilers without SFINAE. You need to upgrade to a more modern compiler. </p> <p> Thanks for your interest, </p> <p> --Beman </p> Ticket