Commit 100e4853 authored by Dominik Charousset's avatar Dominik Charousset

Work around internal compiler error on GCC 4.8

parent b76d88ee
......@@ -332,8 +332,11 @@ public:
template <class... Us>
void with(Us&&... xs) {
// TODO: replace this workaround with the make_tuple() line when dropping
// support for GCC 4.8.
std::tuple<typename std::decay<Us>::type...> tmp{std::forward<Us>(xs)...};
//auto tmp = std::make_tuple(std::forward<Us>(xs)...);
// TODO: move tmp into lambda when switching to C++14
auto tmp = std::make_tuple(std::forward<Us>(xs)...);
peek_ = [=] {
using namespace caf::detail;
elementwise_compare_inspector<decltype(tmp)> inspector{tmp};
......
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