mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-07-03 14:14:11 +00:00
Move variant types enum out of implem namespace.
Also assert that you can get the type you are trying to get before actually trying.
This commit is contained in:
parent
ab43215f49
commit
9ef9b05014
2 changed files with 11 additions and 8 deletions
|
@ -31,13 +31,13 @@ namespace redis {
|
|||
std::string,
|
||||
std::vector<Reply>
|
||||
>;
|
||||
enum RedisVariantTypes {
|
||||
RedisVariantType_Integer = 0,
|
||||
RedisVariantType_String,
|
||||
RedisVariantType_Array,
|
||||
RedisVariantType_Bool
|
||||
};
|
||||
} //namespace implem
|
||||
enum RedisVariantTypes {
|
||||
RedisVariantType_Integer = 0,
|
||||
RedisVariantType_String,
|
||||
RedisVariantType_Array,
|
||||
RedisVariantType_Bool
|
||||
};
|
||||
|
||||
struct Reply : implem::RedisVariantType {
|
||||
using base_class = implem::RedisVariantType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue