mirror of
https://github.com/KingDuckZ/incredis
synced 2024-12-27 21:35:42 +00:00
Make Command and IncRedis moveable
This commit is contained in:
parent
772e039078
commit
1d7a89fee3
3 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -48,6 +48,8 @@ namespace redis {
|
|||
{
|
||||
}
|
||||
|
||||
Command::Command (Command&&) = default;
|
||||
|
||||
Command::Command (std::string&& parSocket) :
|
||||
Command(std::move(parSocket), 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue