1
0
Fork 0
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:
King_DuckZ 2016-06-14 09:37:57 +01:00
parent ab43215f49
commit 9ef9b05014
2 changed files with 11 additions and 8 deletions

View file

@ -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;