diff --git a/Examples/docker/Dockerfile.base.ubuntu.18.04 b/Examples/docker/Dockerfile.base.ubuntu.18.04 index af35417..c22d075 100644 --- a/Examples/docker/Dockerfile.base.ubuntu.18.04 +++ b/Examples/docker/Dockerfile.base.ubuntu.18.04 @@ -132,4 +132,3 @@ RUN cmake .. \ && make install \ && make clean \ && cd $ROOTDIR - diff --git a/Source/moja.core/include/moja/hash.h b/Source/moja.core/include/moja/hash.h index 971de97..ff2d03f 100644 --- a/Source/moja.core/include/moja/hash.h +++ b/Source/moja.core/include/moja/hash.h @@ -4,10 +4,19 @@ #include "moja/_core_exports.h" -//#include "moja/types.h" -//#include "moja/applytuple.h" +#include +// clang-format off +#include // needed by folly #include +// clang-format on + +namespace folly { + template + struct hasher> { + size_t operator()(const Poco::Nullable& key) const { return key.isNull() ? 0 : Hash()(key.value()); } + }; +} // namespace folly namespace moja { using folly::hasher;