Unverified Commit b32c66be authored by fxp's avatar fxp Committed by GitHub

Update optional.h

Fix macro CheckSize conflict with member function in cryptopp library
parent 71846007
......@@ -262,14 +262,14 @@ private:
};
};
#define CheckSize(Type) \
#define PistacheCheckSize(Type) \
static_assert(sizeof(Optional<Type>) == sizeof(Type), "Size differs")
CheckSize(uint8_t);
CheckSize(uint16_t);
CheckSize(int);
CheckSize(void *);
CheckSize(std::string);
PistacheCheckSize(uint8_t);
PistacheCheckSize(uint16_t);
PistacheCheckSize(int);
PistacheCheckSize(void *);
PistacheCheckSize(std::string);
namespace details {
template<typename T>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment