summaryrefslogtreecommitdiff
path: root/absl/flags/declare.h
diff options
context:
space:
mode:
Diffstat (limited to 'absl/flags/declare.h')
-rw-r--r--absl/flags/declare.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/absl/flags/declare.h b/absl/flags/declare.h
index 7ef1d432..0f8cc6a5 100644
--- a/absl/flags/declare.h
+++ b/absl/flags/declare.h
@@ -25,10 +25,11 @@
#ifndef ABSL_FLAGS_DECLARE_H_
#define ABSL_FLAGS_DECLARE_H_
+#include "absl/base/config.h"
#include "absl/strings/string_view.h"
namespace absl {
-inline namespace lts_2019_08_08 {
+ABSL_NAMESPACE_BEGIN
namespace flags_internal {
// absl::Flag<T> represents a flag of type 'T' created by ABSL_FLAG.
@@ -40,10 +41,15 @@ class Flag;
// Flag
//
// Forward declaration of the `absl::Flag` type for use in defining the macro.
+#if defined(_MSC_VER) && !defined(__clang__)
+template <typename T>
+class Flag;
+#else
template <typename T>
using Flag = flags_internal::Flag<T>;
+#endif
-} // inline namespace lts_2019_08_08
+ABSL_NAMESPACE_END
} // namespace absl
// ABSL_DECLARE_FLAG()