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: ...@@ -262,14 +262,14 @@ private:
}; };
}; };
#define CheckSize(Type) \ #define PistacheCheckSize(Type) \
static_assert(sizeof(Optional<Type>) == sizeof(Type), "Size differs") static_assert(sizeof(Optional<Type>) == sizeof(Type), "Size differs")
CheckSize(uint8_t); PistacheCheckSize(uint8_t);
CheckSize(uint16_t); PistacheCheckSize(uint16_t);
CheckSize(int); PistacheCheckSize(int);
CheckSize(void *); PistacheCheckSize(void *);
CheckSize(std::string); PistacheCheckSize(std::string);
namespace details { namespace details {
template<typename T> 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