facebook/mcrouter

error: no template named 'void_t' in namespace 'std'; did you mean 'folly::void_t'?

yurivict opened this issue · 0 comments

In file included from StatsReply.cpp:12:
In file included from ../../mcrouter/lib/network/gen/MemcacheMessages.h:28:
In file included from ../../mcrouter/lib/carbon/RequestReplyUtil.h:20:
../../mcrouter/lib/network/MessageHelpers.h:132:5: error: no template named 'void_t' in namespace 'std'; did you mean 'folly::void_t'?
    std::void_t<decltype(std::declval<std::decay_t<Message>&>().key_ref())>>
    ^~~~~~~~~~~
    folly::void_t
/usr/local/include/folly/Traits.h:248:1: note: 'folly::void_t' declared here
using void_t = type_t<void, Ts...>;
^
In file included from StatsReply.cpp:12:
In file included from ../../mcrouter/lib/network/gen/MemcacheMessages.h:28:
../../mcrouter/lib/carbon/RequestReplyUtil.h:38:5: error: no template named 'void_t' in namespace 'std'; did you mean 'folly::void_t'?
    std::void_t<decltype(std::declval<T>().isFailover_ref())>>
    ^~~~~~~~~~~
    folly::void_t
/usr/local/include/folly/Traits.h:248:1: note: 'folly::void_t' declared here
using void_t = type_t<void, Ts...>;
^
In file included from StatsReply.cpp:12:
In file included from ../../mcrouter/lib/network/gen/MemcacheMessages.h:28:
../../mcrouter/lib/carbon/RequestReplyUtil.h:44:22: error: no template named 'void_t' in namespace 'std'; did you mean 'folly::void_t'?
struct HasMessage<T, std::void_t<decltype(std::declval<T>().message_ref())>>
                     ^~~~~~~~~~~
                     folly::void_t
/usr/local/include/folly/Traits.h:248:1: note: 'folly::void_t' declared here
using void_t = type_t<void, Ts...>;
^
mv -f .deps/libmcrouter_a-MessageQueue.Tpo .deps/libmcrouter_a-MessageQueue.Po
c++ -DHAVE_CONFIG_H   -I../.. -fno-omit-frame-pointer -isystem /usr/local/include  -DLIBMC_FBTRACE_DISABLE -DDISABLE_COMPRESSION  -Wno-missing-field-initializers -Wno-deprecated -W -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -isystem /usr/local/include  -MT libmcrouter_a-ZstdCompressionCodec.o -MD -MP -MF .deps/libmcrouter_a-ZstdCompressionCodec.Tpo -c -o libmcrouter_a-ZstdCompressionCodec.o `test -f 'ZstdCompressionCodec.cpp' || echo './'`ZstdCompressionCodec.cpp
In file included from StatsReply.cpp:12:
In file included from ../../mcrouter/lib/network/gen/MemcacheMessages.h:28:
../../mcrouter/lib/carbon/RequestReplyUtil.h:52:5: error: no template named 'void_t' in namespace 'std'; did you mean 'folly::void_t'?
    std::void_t<decltype(std::declval<T>().appSpecificErrorCode_ref())>>
    ^~~~~~~~~~~
    folly::void_t
/usr/local/include/folly/Traits.h:248:1: note: 'folly::void_t' declared here
using void_t = type_t<void, Ts...>;
^
In file included from FailoverErrorsSettingsBase.cpp:8:
In file included from ./FailoverErrorsSettingsBase.h:16:
In file included from ../../mcrouter/lib/Reply.h:16:
In file included from ../../mcrouter/lib/network/gen/MemcacheMessages.h:28:
In file included from ../../mcrouter/lib/carbon/RequestReplyUtil.h:20:
../../mcrouter/lib/network/MessageHelpers.h:132:5: error: no template named 'void_t' in namespace 'std'; did you mean 'folly::void_t'?
    std::void_t<decltype(std::declval<std::decay_t<Message>&>().key_ref())>>
    ^~~~~~~~~~~
    folly::void_t
/usr/local/include/folly/Traits.h:248:1: note: 'folly::void_t' declared here
using void_t = type_t<void, Ts...>;
^
In file included from FailoverErrorsSettingsBase.cpp:8:
In file included from ./FailoverErrorsSettingsBase.h:16:
In file included from ../../mcrouter/lib/Reply.h:16:
In file included from ../../mcrouter/lib/network/gen/MemcacheMessages.h:28:
../../mcrouter/lib/carbon/RequestReplyUtil.h:38:5: error: no template named 'void_t' in namespace 'std'; did you mean 'folly::void_t'?
    std::void_t<decltype(std::declval<T>().isFailover_ref())>>
    ^~~~~~~~~~~
    folly::void_t
/usr/local/include/folly/Traits.h:248:1: note: 'folly::void_t' declared here
using void_t = type_t<void, Ts...>;
^
In file included from FailoverErrorsSettingsBase.cpp:8:
In file included from ./FailoverErrorsSettingsBase.h:16:
In file included from ../../mcrouter/lib/Reply.h:16:
In file included from ../../mcrouter/lib/network/gen/MemcacheMessages.h:28:
../../mcrouter/lib/carbon/RequestReplyUtil.h:44:22: error: no template named 'void_t' in namespace 'std'; did you mean 'folly::void_t'?
struct HasMessage<T, std::void_t<decltype(std::declval<T>().message_ref())>>
                     ^~~~~~~~~~~
                     folly::void_t
/usr/local/include/folly/Traits.h:248:1: note: 'folly::void_t' declared here
using void_t = type_t<void, Ts...>;
^
In file included from FailoverErrorsSettingsBase.cpp:8:
In file included from ./FailoverErrorsSettingsBase.h:16:
In file included from ../../mcrouter/lib/Reply.h:16:
In file included from ../../mcrouter/lib/network/gen/MemcacheMessages.h:28:
../../mcrouter/lib/carbon/RequestReplyUtil.h:52:5: error: no template named 'void_t' in namespace 'std'; did you mean 'folly::void_t'?
    std::void_t<decltype(std::declval<T>().appSpecificErrorCode_ref())>>
    ^~~~~~~~~~~
    folly::void_t
/usr/local/include/folly/Traits.h:248:1: note: 'folly::void_t' declared here
using void_t = type_t<void, Ts...>;
^

0.41.0-228-g64aed325
FreeBSD 12.2
clang-10