Unverified Commit 24520ab6 authored by Mathieu Stefani's avatar Mathieu Stefani Committed by GitHub

Merge pull request #207 from xiaopeifeng/xiaopeifeng-patch-1

Update optional.h
parents 71846007 b32c66be
......@@ -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