Opened 13 years ago

Closed 13 years ago

#3575 closed Bugs (wontfix)

On Borland-Error E2029 enable_if_does_not_work_on_this_compiler<void> must be a class or a structure previously define

Reported by: coralie.vessieres@… Owned by: Beman Dawes
Milestone: Boost 1.41.0 Component: filesystem
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:

Description

Hello

I'm working with Boost on Borland® Developer Studio for Microsoft® Windows™ Version 10.0.2288.42451 and I encounter this error :

Error E2029 enable_if_does_not_work_on_this_compiler<void> must be a class or a structure previously define

In the file enable_if.hpp at line 100

template <class Cond, class T = detail::enable_if_default_T>

struct enable_if : enable_if_does_not_work_on_this_compiler<T> { };

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 <boost/filesystem.hpp> the error happen. I found nothing on the web about it, so if you know the problem I will be glad to know it.

Thank you.

Coralie VESSIERES

Attachments (1)

bug.rar (10.0 KB ) - added by coralie.vessieres@… 13 years ago.

Download all attachments as: .zip

Change History (4)

by coralie.vessieres@…, 13 years ago

Attachment: bug.rar added

comment:1 by Steven Watanabe, 13 years ago

Component: Nonefilesystem
Owner: set to Beman Dawes

What version of the compiler is this?

The tests at http://www.boost.org/development/tests/trunk/developer/filesystem.html don't show this error.

comment:2 by coralie.vessieres@…, 13 years ago

I don't quite understand your table, which one represent Borland 2006 between those

borland- 5.9.3 borland- 6.1.3 borland- 6.2.0 borland- cb2009 borland- cb2010

The compiler version is 5.82.

Thank you for your quick answer.

comment:3 by Beman Dawes, 13 years ago

Resolution: wontfix
Status: newclosed

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.

Thanks for your interest,

--Beman

Note: See TracTickets for help on using tickets.