Fix a build error

This commit is contained in:
Denis Blank 2019-09-02 00:45:53 +02:00
parent 91d51e6543
commit 959f059a25

View File

@ -63,9 +63,10 @@ TEST(single_erasure_test, is_assignable_from_continuation) {
TEST(single_erasure_test, is_constructible_from_work) {
bool flag = false;
work mywork([&] {
work mywork([&](auto&&... args) {
EXPECT_FALSE(flag);
flag = true;
unused(std::forward<decltype(args)>(args)...);
});
ASSERT_FALSE(flag);
@ -78,9 +79,10 @@ TEST(single_erasure_test, is_assignable_from_work) {
work mywork;
mywork = [&] {
mywork = [&](auto&&... args) {
EXPECT_FALSE(flag);
flag = true;
unused(std::forward<decltype(args)>(args)...);
};
ASSERT_FALSE(flag);