34 #ifndef GRPCXX_CONFIG_H
35 #define GRPCXX_CONFIG_H
37 #if !defined(GRPC_NO_AUTODETECT_PLATFORM)
42 #error "gRPC is only supported with Visual Studio starting at 2010"
45 #define GRPC_CXX0X_NO_FINAL 1
46 #define GRPC_CXX0X_NO_OVERRIDE 1
47 #define GRPC_CXX0X_NO_CHRONO 1
48 #define GRPC_CXX0X_NO_THREAD 1
50 #endif // Visual Studio
55 #if (__GNUC__ * 100 + __GNUC_MINOR__ < 406)
56 #define GRPC_CXX0X_NO_NULLPTR 1
59 #if (__GNUC__ * 100 + __GNUC_MINOR__ < 407)
60 #define GRPC_CXX0X_NO_FINAL 1
61 #define GRPC_CXX0X_NO_OVERRIDE 1
68 #ifdef GRPC_CXX0X_NO_FINAL
71 #define GRPC_FINAL final
74 #ifdef GRPC_CXX0X_NO_OVERRIDE
77 #define GRPC_OVERRIDE override
80 #ifdef GRPC_CXX0X_NO_NULLPTR
86 operator T *()
const {
87 return static_cast<T *
>(0);
90 operator std::unique_ptr<T>()
const {
91 return std::unique_ptr<T>(
static_cast<T *
>(0));
94 operator std::shared_ptr<T>()
const {
95 return std::shared_ptr<T>(
static_cast<T *
>(0));
97 operator bool()
const {
return false; }
100 void operator&()
const =
delete;
105 #ifndef GRPC_CUSTOM_STRING
107 #define GRPC_CUSTOM_STRING std::string
116 #endif // GRPCXX_CONFIG_H
std::string string
Definition: config.h:112
#define GRPC_CUSTOM_STRING
Definition: config.h:107