diff --git a/httplib.h b/httplib.h index 616b914..ceb5cdf 100644 --- a/httplib.h +++ b/httplib.h @@ -1530,6 +1530,7 @@ public: const std::string &client_key_path); Client(Client &&) = default; + Client &operator=(Client &&) = default; ~Client(); diff --git a/test/test.cc b/test/test.cc index 855988d..446e7f9 100644 --- a/test/test.cc +++ b/test/test.cc @@ -54,11 +54,17 @@ MultipartFormData &get_file_value(MultipartFormDataItems &files, #endif } -TEST(ConstructorTest, MoveConstructible) { +TEST(ClientTest, MoveConstructible) { EXPECT_FALSE(std::is_copy_constructible::value); EXPECT_TRUE(std::is_nothrow_move_constructible::value); } +TEST(ClientTest, MoveAssignable) +{ + EXPECT_FALSE(std::is_copy_assignable::value); + EXPECT_TRUE(std::is_nothrow_move_assignable::value); +} + #ifdef _WIN32 TEST(StartupTest, WSAStartup) { WSADATA wsaData;