Fix clang builds

This commit is contained in:
Dmitrii Kovalkov 2020-05-28 17:38:07 +02:00
parent 0f730b2ace
commit b0537bf31e
6 changed files with 9 additions and 7 deletions

View File

@ -141,7 +141,7 @@ template <typename Name>
class FunctionStartsEndsWith : public TargetSpecific::Default::FunctionStartsEndsWith<Name>
{
public:
FunctionStartsEndsWith(const Context & context) : selector(context)
explicit FunctionStartsEndsWith(const Context & context) : selector(context)
{
selector.registerImplementation<TargetArch::Default,
TargetSpecific::Default::FunctionStartsEndsWith<Name>>();

View File

@ -655,7 +655,7 @@ template <typename Impl, typename Name>
class FunctionIntHash : public TargetSpecific::Default::FunctionIntHash<Impl, Name>
{
public:
FunctionIntHash(const Context & context) : selector(context)
explicit FunctionIntHash(const Context & context) : selector(context)
{
selector.registerImplementation<TargetArch::Default,
TargetSpecific::Default::FunctionIntHash<Impl, Name>>();
@ -981,7 +981,7 @@ template <typename Impl>
class FunctionAnyHash : public TargetSpecific::Default::FunctionAnyHash<Impl>
{
public:
FunctionAnyHash(const Context & context) : selector(context)
explicit FunctionAnyHash(const Context & context) : selector(context)
{
selector.registerImplementation<TargetArch::Default,
TargetSpecific::Default::FunctionAnyHash<Impl>>();

View File

@ -4,7 +4,9 @@
#include <Common/HashTable/Hash.h>
#include <Common/randomSeed.h>
#include <common/unaligned.h>
#if USE_MULTITARGET_CODE
# include <x86intrin.h>
#endif
namespace DB
{

View File

@ -91,7 +91,7 @@ template <typename ToType, typename Name>
class FunctionRandom : public FunctionRandomImpl<TargetSpecific::Default::RandImpl, ToType, Name>
{
public:
FunctionRandom(const Context & context) : selector(context)
explicit FunctionRandom(const Context & context) : selector(context)
{
selector.registerImplementation<TargetArch::Default,
FunctionRandomImpl<TargetSpecific::Default::RandImpl, ToType, Name>>();

View File

@ -35,7 +35,7 @@ template <typename ToType, typename Name>
class FunctionRandomXorshift : public FunctionRandomImpl<TargetSpecific::Default::RandXorshiftImpl, ToType, Name>
{
public:
FunctionRandomXorshift(const Context & context) : selector(context)
explicit FunctionRandomXorshift(const Context & context) : selector(context)
{
selector.registerImplementation<TargetArch::Default,
FunctionRandomImpl<TargetSpecific::Default::RandXorshiftImpl, ToType, Name>>();

View File

@ -61,7 +61,7 @@ public:
class FunctionGenerateUUIDv4 : public TargetSpecific::Default::FunctionGenerateUUIDv4
{
public:
FunctionGenerateUUIDv4(const Context & context) : selector(context)
explicit FunctionGenerateUUIDv4(const Context & context) : selector(context)
{
selector.registerImplementation<TargetArch::Default,
TargetSpecific::Default::FunctionGenerateUUIDv4>();