aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/stubs/common.h
diff options
context:
space:
mode:
authorGravatar xiaofeng@google.com <xiaofeng@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2012-11-30 16:29:03 +0000
committerGravatar xiaofeng@google.com <xiaofeng@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2012-11-30 16:29:03 +0000
commit9c1c31ff165fceb76a0ec50cd7097038264c6908 (patch)
treefedeb0fa7ce102cc9037fe1822adc1620e2cdbf2 /src/google/protobuf/stubs/common.h
parentd2d50f9a73184ea77e7b907b7767a6f4c8c8d4bf (diff)
Fix compile issues under GCC 3.4.6
Diffstat (limited to 'src/google/protobuf/stubs/common.h')
-rw-r--r--src/google/protobuf/stubs/common.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/google/protobuf/stubs/common.h b/src/google/protobuf/stubs/common.h
index 07ae5307..66b91291 100644
--- a/src/google/protobuf/stubs/common.h
+++ b/src/google/protobuf/stubs/common.h
@@ -341,12 +341,6 @@ inline To down_cast(From* f) { // so we only accept pointers
return static_cast<To>(f);
}
-// Simplified down_cast for reference type.
-template<typename To, typename From>
-inline To down_cast(From& f) {
- return static_cast<To>(f);
-}
-
} // namespace internal
// We made these internal so that they would show up as such in the docs,