libbinder: Fix for using default constructor on IpPrefix class
We were missing the default constructor on our internal union,
which prevented the default constructor on the main class from
being functional. This change fixes the problem by specifying a
default constructor for the internal union.
Change-Id: I6d296aa27b3a2b6d43aa7accccb9c25ccccfb0a6
diff --git a/include/binder/IpPrefix.h b/include/binder/IpPrefix.h
index f8c80dc..96ebaac 100644
--- a/include/binder/IpPrefix.h
+++ b/include/binder/IpPrefix.h
@@ -71,6 +71,7 @@
private:
union InternalUnion {
+ InternalUnion() = default;
InternalUnion(const struct in6_addr &addr):mIn6Addr(addr) { };
InternalUnion(const struct in_addr &addr):mInAddr(addr) { };
struct in6_addr mIn6Addr;