提交 8570da1d 编写于 作者: B Behdad Esfahbod

[meta] Minor

上级 442f4a58
...@@ -158,11 +158,11 @@ template<class T, typename B> ...@@ -158,11 +158,11 @@ template<class T, typename B>
struct _hb_is_iterable struct _hb_is_iterable
{ enum { value = false }; }; { enum { value = false }; };
template<class T> template<class T>
struct _hb_is_iterable<T, hb_bool_tt<(bool) sizeof (hb_declval<T> ().iter ())> > struct _hb_is_iterable<T, hb_bool_tt<true || sizeof (hb_declval<T> ().iter ())> >
{ enum { value = true }; }; { enum { value = true }; };
template<class T> template<class T>
struct hb_is_iterable { enum { value = _hb_is_iterable<T, hb_true_t>::value }; }; struct hb_is_iterable { enum { value = _hb_is_iterable<T, hb_true_t>::value }; };
#define hb_is_iterable(Iterable) hb_is_iterable<Iterable>::value #define hb_is_iterable(Iterable) hb_is_iterable<Iterable>::value
......
...@@ -50,7 +50,7 @@ template <typename T, typename B> ...@@ -50,7 +50,7 @@ template <typename T, typename B>
struct _hb_null_size struct _hb_null_size
{ enum { value = sizeof (T) }; }; { enum { value = sizeof (T) }; };
template <typename T> template <typename T>
struct _hb_null_size<T, hb_bool_tt<(bool) (1 + (unsigned int) T::min_size)> > struct _hb_null_size<T, hb_bool_tt<true || sizeof (T::min_size)> >
{ enum { value = T::null_size }; }; { enum { value = T::null_size }; };
template <typename T> template <typename T>
...@@ -67,7 +67,7 @@ template <typename T, typename B> ...@@ -67,7 +67,7 @@ template <typename T, typename B>
struct _hb_static_size struct _hb_static_size
{ enum { value = sizeof (T) }; }; { enum { value = sizeof (T) }; };
template <typename T> template <typename T>
struct _hb_static_size<T, hb_bool_tt<(bool) (1 + (unsigned int) T::min_size)> > struct _hb_static_size<T, hb_bool_tt<true || sizeof (T::min_size)> >
{ enum { value = T::static_size }; }; { enum { value = T::static_size }; };
template <typename T> template <typename T>
...@@ -84,10 +84,10 @@ template <typename T, typename V, typename B> ...@@ -84,10 +84,10 @@ template <typename T, typename V, typename B>
struct _hb_assign struct _hb_assign
{ static inline void value (T &o, const V v) { o = v; } }; { static inline void value (T &o, const V v) { o = v; } };
template <typename T, typename V> template <typename T, typename V>
struct _hb_assign<T, V, hb_bool_tt<(bool) (1 + (unsigned int) T::min_size)> > struct _hb_assign<T, V, hb_bool_tt<true || sizeof (T::min_size)> >
{ static inline void value (T &o, const V v) { o.set (v); } }; { static inline void value (T &o, const V v) { o.set (v); } };
template <typename T> template <typename T>
struct _hb_assign<T, T, hb_bool_tt<(bool) (1 + (unsigned int) T::min_size)> > struct _hb_assign<T, T, hb_bool_tt<true || sizeof (T::min_size)> >
{ static inline void value (T &o, const T v) { o = v; } }; { static inline void value (T &o, const T v) { o = v; } };
template <typename T, typename V> template <typename T, typename V>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册