Commit f8a5c5f7 authored by Jisi Liu's avatar Jisi Liu

Fix using std::shared_ptr

parent 75e58985
...@@ -48,7 +48,7 @@ class Message; ...@@ -48,7 +48,7 @@ class Message;
class FieldDescriptor; class FieldDescriptor;
#ifdef _SHARED_PTR_H #ifdef _SHARED_PTR_H
using shared_ptr; using std::shared_ptr;
#else #else
using internal::shared_ptr; using internal::shared_ptr;
#endif #endif
......
...@@ -47,7 +47,7 @@ namespace protobuf { ...@@ -47,7 +47,7 @@ namespace protobuf {
class Message; class Message;
#ifdef _SHARED_PTR_H #ifdef _SHARED_PTR_H
using shared_ptr; using std::shared_ptr;
#else #else
using internal::shared_ptr; using internal::shared_ptr;
#endif #endif
......
...@@ -53,7 +53,7 @@ class DescriptorPool; ...@@ -53,7 +53,7 @@ class DescriptorPool;
class MessageFactory; class MessageFactory;
#ifdef _SHARED_PTR_H #ifdef _SHARED_PTR_H
using shared_ptr; using std::shared_ptr;
using ::std::string; using ::std::string;
#else #else
using internal::shared_ptr; using internal::shared_ptr;
......
...@@ -50,7 +50,7 @@ class FieldDescriptor; ...@@ -50,7 +50,7 @@ class FieldDescriptor;
class Message; class Message;
#ifdef _SHARED_PTR_H #ifdef _SHARED_PTR_H
using shared_ptr; using std::shared_ptr;
#else #else
using internal::shared_ptr; using internal::shared_ptr;
#endif #endif
......
...@@ -49,7 +49,7 @@ namespace protobuf { ...@@ -49,7 +49,7 @@ namespace protobuf {
class Message; class Message;
#ifdef _SHARED_PTR_H #ifdef _SHARED_PTR_H
using shared_ptr; using std::shared_ptr;
#else #else
using internal::shared_ptr; using internal::shared_ptr;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment