diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp index db22c72..ccb652a 100644 --- a/tests/notnull_tests.cpp +++ b/tests/notnull_tests.cpp @@ -19,9 +19,9 @@ #include // for not_null, operator<, operator<=, operator> #include // for addressof +#include // for uint16_t #include // for shared_ptr, make_shared, operator<, opera... #include // for operator<<, ostringstream, basic_ostream:... -#include // for uint16_t #include // for basic_string, operator==, string, operator<< #include // for type_info diff --git a/tests/utils_tests.cpp b/tests/utils_tests.cpp index 715073f..0658263 100644 --- a/tests/utils_tests.cpp +++ b/tests/utils_tests.cpp @@ -19,11 +19,11 @@ #include // for move #include #include // for std::ptrdiff_t +#include // for uint32_t, int32_t #include // for reference_wrapper, _Bind_helper<>::type #include // for narrow, narrowing_error #include // finally, narrow_cast #include // for numeric_limits -#include // for uint32_t, int32_t #include // for is_same using namespace gsl; @@ -96,7 +96,7 @@ TEST(utils_tests, finally_function_with_bind) { int i = 0; { - auto _ = finally(std::bind(&f, std::ref(i))); + auto _ = finally([&i] { return f(i); }); EXPECT_TRUE(i == 0); } EXPECT_TRUE(i == 1);