Use void() to create a void expression type
authorEric Fiselier <eric@efcs.ca>
Sat, 7 Apr 2018 04:28:11 +0000 (04:28 +0000)
committerEric Fiselier <eric@efcs.ca>
Sat, 7 Apr 2018 04:28:11 +0000 (04:28 +0000)
llvm-svn: 329484

libcxx/include/compare

index fd4d7f5..17fc6ff 100644 (file)
@@ -639,7 +639,7 @@ constexpr auto __get_comp_type() {
   constexpr _CCC _Cat = sizeof...(_Ts) == 0 ? _StrongOrd
       : __compute_comp_type(__type_kinds);
   if constexpr (_Cat == _None)
-    return ((void)0);
+    return void();
   else if constexpr (_Cat == _WeakEq)
     return weak_equality::equivalent;
   else if constexpr (_Cat == _StrongEq)