aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2013-01-11 06:36:35 +0000
committerGravatar liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2013-01-11 06:36:35 +0000
commit71caf8c25def6d337e6ff7f752e487089d752b6f (patch)
tree3fe4dbf88f15848ce9abe95cc49332a56cd6abf7
parentf5b373dfb6d92e14fd79a886ca31fc42a4e91d5f (diff)
Remove "using" directives to disambiguate type_traits for vc2012.
-rw-r--r--src/google/protobuf/stubs/type_traits_unittest.cc23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/google/protobuf/stubs/type_traits_unittest.cc b/src/google/protobuf/stubs/type_traits_unittest.cc
index 00e5a476..7a8cbfb8 100644
--- a/src/google/protobuf/stubs/type_traits_unittest.cc
+++ b/src/google/protobuf/stubs/type_traits_unittest.cc
@@ -47,27 +47,6 @@ using std::string;
using std::vector;
using std::pair;
-using google::protobuf::internal::add_reference;
-using google::protobuf::internal::has_trivial_assign;
-using google::protobuf::internal::has_trivial_constructor;
-using google::protobuf::internal::has_trivial_copy;
-using google::protobuf::internal::has_trivial_destructor;
-#if !defined(_MSC_VER) && !(defined(__GNUC__) && __GNUC__ <= 3)
-using google::protobuf::internal::is_convertible;
-using google::protobuf::internal::is_enum;
-#endif
-using google::protobuf::internal::is_floating_point;
-using google::protobuf::internal::is_integral;
-using google::protobuf::internal::is_pointer;
-using google::protobuf::internal::is_pod;
-using google::protobuf::internal::is_reference;
-using google::protobuf::internal::is_same;
-using google::protobuf::internal::remove_const;
-using google::protobuf::internal::remove_cv;
-using google::protobuf::internal::remove_pointer;
-using google::protobuf::internal::remove_reference;
-using google::protobuf::internal::remove_volatile;
-
// This assertion produces errors like "error: invalid use of
// incomplete type 'struct <unnamed>::AssertTypesEq<const int, int>'"
@@ -175,6 +154,7 @@ class J {
namespace google {
namespace protobuf {
+namespace internal {
namespace {
// A base class and a derived class that inherits from it, used for
@@ -643,5 +623,6 @@ TEST(TypeTraitsTest, TestConvertible) {
}
} // anonymous namespace
+} // namespace internal
} // namespace protobuf
} // namespace google