Commit 2e54fa3b authored by Dominik Charousset's avatar Dominik Charousset

Work around GCC 4.8 bug for disallow

parent 518bd1c0
...@@ -413,8 +413,10 @@ public: ...@@ -413,8 +413,10 @@ public:
template <class... Us> template <class... Us>
void with(Us&&... xs) { void with(Us&&... xs) {
// TODO: replace this workaround with make_tuple() when dropping support
// for GCC 4.8.
std::tuple<typename std::decay<Us>::type...> tmp{std::forward<Us>(xs)...};
// TODO: move tmp into lambda when switching to C++14 // TODO: move tmp into lambda when switching to C++14
auto tmp = std::make_tuple(std::forward<Us>(xs)...);
peek_ = [=] { peek_ = [=] {
using namespace caf::detail; using namespace caf::detail;
elementwise_compare_inspector<decltype(tmp)> inspector{tmp}; elementwise_compare_inspector<decltype(tmp)> inspector{tmp};
...@@ -491,8 +493,10 @@ public: ...@@ -491,8 +493,10 @@ public:
template <class... Us> template <class... Us>
void with(Us&&... xs) { void with(Us&&... xs) {
// TODO: replace this workaround with make_tuple() when dropping support
// for GCC 4.8.
std::tuple<typename std::decay<Us>::type...> tmp{std::forward<Us>(xs)...};
// TODO: move tmp into lambda when switching to C++14 // TODO: move tmp into lambda when switching to C++14
auto tmp = std::make_tuple(std::forward<Us>(xs)...);
check_ = [=] { check_ = [=] {
auto ptr = next_mailbox_element(dest_); auto ptr = next_mailbox_element(dest_);
if (ptr == nullptr) if (ptr == nullptr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment