Try to firx keeper build.

This commit is contained in:
Nikolai Kochetov 2022-07-20 17:30:52 +00:00
parent 91aa2385ca
commit 0341c6c54b
2 changed files with 10 additions and 0 deletions

View File

@ -54,6 +54,7 @@ namespace
return applyVisitor(FieldVisitorConvertToNumber<T>(), f);
}
#ifndef KEEPER_STANDALONE_BUILD
Map stringToMap(const String & str)
{
/// Allow empty string as an empty map
@ -81,6 +82,8 @@ namespace
return f.safeGet<const Map &>();
}
#endif
}
template <typename T>
@ -321,6 +324,8 @@ void SettingFieldString::readBinary(ReadBuffer & in)
*this = std::move(str);
}
#ifndef KEEPER_STANDALONE_BUILD
SettingFieldMap::SettingFieldMap(const Field & f) : value(fieldToMap(f)) {}
String SettingFieldMap::toString() const
@ -360,6 +365,7 @@ void SettingFieldMap::readBinary(ReadBuffer & in)
*this = map;
}
#endif
namespace
{

View File

@ -168,6 +168,8 @@ struct SettingFieldString
void readBinary(ReadBuffer & in);
};
#ifndef KEEPER_STANDALONE_BUILD
struct SettingFieldMap
{
public:
@ -191,6 +193,8 @@ public:
void readBinary(ReadBuffer & in);
};
#endif
struct SettingFieldChar
{
public: