Fix folly conversions for Clang with GCC5's libstdc++
[folly.git] / folly / test / MacAddressTest.cpp
index 0cea2b828756ef12ff083b7f9eb0f04668d50953..b97ea211484987f5c00d70dbf07db73d9e6c26b4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,8 +16,9 @@
 
 #include <gtest/gtest.h>
 
-#include "folly/IPAddressV6.h"
-#include "folly/MacAddress.h"
+#include <folly/Conv.h>
+#include <folly/IPAddressV6.h>
+#include <folly/MacAddress.h>
 
 using folly::MacAddress;
 using folly::IPAddressV6;
@@ -149,7 +150,7 @@ void testCmp(const char* str1, const char* str2) {
   EXPECT_TRUE(m2 > m1);
   EXPECT_TRUE(m2 >= m1);
   EXPECT_TRUE(m1 != m2);
-  EXPECT_TRUE(m1 == m1);
+  EXPECT_TRUE(m1 == (m1));
   EXPECT_FALSE(m1 == m2);
 
   // Also test the copy constructor and assignment operator