We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9cf39ca + 30068ac commit 2a4d9fcCopy full SHA for 2a4d9fc
clickhouse/client.h
@@ -45,12 +45,13 @@ enum class CompressionMethod {
45
};
46
47
struct ClientOptions {
48
+ // Setter goes first, so it is possible to apply 'deprecated' annotation safely.
49
#define DECLARE_FIELD(name, type, setter, default_value) \
- type name = default_value; \
50
inline auto & setter(const type& value) { \
51
name = value; \
52
return *this; \
53
- }
+ } \
54
+ type name = default_value
55
56
/// Hostname of the server.
57
DECLARE_FIELD(host, std::string, SetHost, std::string());
0 commit comments