Skip to content

Commit

Permalink
use GTEST_HAS_ABSL instead of __cplusplus >= 201703L
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzkry committed May 22, 2020
1 parent 809d79e commit b62abd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions googletest/include/gtest/gtest-printers.h
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,11 @@ class UniversalPrinter<Variant<T...>> {
public:
static void Print(const Variant<T...>& value, ::std::ostream* os) {
*os << '(';
#if __cplusplus >= 201703L
std::visit(Visitor{os, value.index()}, value);
#else
#if GTEST_HAS_ABSL
absl::visit(Visitor{os, value.index()}, value);
#endif // __cplusplus >= 201703L
#else
std::visit(Visitor{os, value.index()}, value);
#endif // GTEST_HAS_ABSL
*os << ')';
}

Expand Down

0 comments on commit b62abd7

Please sign in to comment.