Tidied up Borland implementation

[SVN r13240]
This commit is contained in:
John Maddock
2002-03-22 11:24:28 +00:00
parent f1ae54e40a
commit d8fbf9e9de

View File

@@ -95,7 +95,7 @@ public:
// UDT conversions:
//
template <class From, class To>
struct is_convertible_helper
struct is_convertible
{
private:
#pragma option push -w-8074
@@ -115,17 +115,6 @@ public:
#pragma option pop
};
template <class From, class To>
struct is_convertible
{
private:
typedef is_convertible_helper<From, To> c_type;
enum{ v = c_type::value };
char force_it[v ? 1 : 2];
public:
static const bool value = is_convertible_helper<From, To>::value;
};
#elif defined(__GNUC__)
//
// special version for gcc compiler