1
0
Fork 0
mirror of https://github.com/KingDuckZ/incredis synced 2024-11-27 00:43:50 +00:00

Make Command and IncRedis moveable

This commit is contained in:
King_DuckZ 2017-04-14 00:45:39 +01:00
parent 772e039078
commit 1d7a89fee3
3 changed files with 4 additions and 0 deletions

View file

@ -37,6 +37,7 @@ namespace redis {
class Command {
public:
Command ( std::string&& parAddress, uint16_t parPort );
Command ( Command&& );
explicit Command ( std::string&& parSocket );
~Command ( void ) noexcept;

View file

@ -45,6 +45,7 @@ namespace redis {
typedef boost::optional<std::vector<opt_string>> opt_string_list;
IncRedis ( std::string&& parAddress, uint16_t parPort );
IncRedis ( IncRedis&& ) = default;
explicit IncRedis ( std::string&& parSocket );
~IncRedis ( void ) noexcept = default;

View file

@ -48,6 +48,8 @@ namespace redis {
{
}
Command::Command (Command&&) = default;
Command::Command (std::string&& parSocket) :
Command(std::move(parSocket), 0)
{