forked from boostorg/type_traits
Tidied up Borland implementation
[SVN r13240]
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user