Verification: the compilation doesn't fail; further validation will be
done when the operator will be used in the UUID class code
Change-Id: If7bee4f1f4b5d994aeaa11d32e2e2371397e94ba
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
ALIGNAS_TYPE(T) char value_[sizeof(T)];
};
+template <class T, class U>
+constexpr bool operator==(const optional<T>& a, const optional<U>& b) {
+ if (a && b) {
+ return *a == *b;
+ }
+ return !a && !b;
+}
+
} // namespace common
#undef ALIGNAS_TYPE