Browse Source

[master] worked around a build error on the Solaris buildbox (with g++).
in that platform BOOST_STATIC_ASSERT() complained about class static constants
as "non constant".

JINMEI Tatuya 14 years ago
parent
commit
fb032e3971
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/acl/ip_check.h

+ 1 - 1
src/lib/acl/ip_check.h

@@ -100,7 +100,7 @@ private:
 
     // Confirm our assumption of relative sizes - this allows us to assume that
     // an array sized for an IPv6 address can hold an IPv4 address.
-    BOOST_STATIC_ASSERT(IPV6_SIZE > IPV4_SIZE);
+    BOOST_STATIC_ASSERT(sizeof(struct in6_addr) > sizeof(struct in_addr));
 
 public:
     /// \brief String Constructor