about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--absl/types/internal/variant.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/absl/types/internal/variant.h b/absl/types/internal/variant.h
index 28ae1a5a7e3c..f220afd04415 100644
--- a/absl/types/internal/variant.h
+++ b/absl/types/internal/variant.h
@@ -37,6 +37,8 @@
 #include "absl/types/bad_variant_access.h"
 #include "absl/utility/utility.h"
 
+#if !defined(ABSL_HAVE_STD_VARIANT)
+
 namespace absl {
 
 template <class... Types>
@@ -1612,4 +1614,5 @@ struct VariantHashBase<Variant,
 }  // namespace variant_internal
 }  // namespace absl
 
+#endif  // !defined(ABSL_HAVE_STD_VARIANT)
 #endif  // ABSL_TYPES_variant_internal_H_