BRE12
bool_type.h
1 #ifndef NODE_DETAIL_BOOL_TYPE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define NODE_DETAIL_BOOL_TYPE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
3 
4 #if defined(_MSC_VER) || \
5  (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
6  (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
7 #pragma once
8 #endif
9 
10 namespace YAML {
11 namespace detail {
13  struct NOT_ALLOWED;
14  static void true_value(NOT_ALLOWED*) {}
15 };
16 typedef void (*unspecified_bool_type)(unspecified_bool::NOT_ALLOWED*);
17 }
18 }
19 
20 #define YAML_CPP_OPERATOR_BOOL() \
21  operator YAML::detail::unspecified_bool_type() const { \
22  return this->operator!() ? 0 \
23  : &YAML::detail::unspecified_bool::true_value; \
24  }
25 
26 #endif // NODE_DETAIL_BOOL_TYPE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
Definition: bool_type.h:12
Definition: DrawableObjectLoader.h:10