mirror of
https://github.com/boostorg/type_traits.git
synced 2025-07-31 13:07:22 +02:00
Fix is_reference for MSVC6.4
[SVN r8035]
This commit is contained in:
@ -317,7 +317,12 @@ template <typename T> struct is_reference
|
||||
private:
|
||||
typedef T const volatile cv_t;
|
||||
public:
|
||||
enum{ value = !is_const<cv_t>::value || !is_volatile<cv_t>::value };
|
||||
enum // dwa 10/27/00 - VC6.4 seems to choke on short-circuit (&&,||)
|
||||
{ // evaluations in constant expressions
|
||||
value = !is_const<cv_t>::value ? true
|
||||
: !is_volatile<cv_t>::value ? true
|
||||
: false
|
||||
};
|
||||
};
|
||||
template <> struct is_reference<void>
|
||||
{
|
||||
|
Reference in New Issue
Block a user