diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2016-08-01 18:47:45 -0700 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2016-08-02 10:13:05 -0700 |
commit | 3916a0aa999df3da9e8853b5911a5caf43a863fb (patch) | |
tree | ae79f122b9ddd2a4738289a562a0229c91533b7d /src/google/protobuf/arena.h | |
parent | e8ae137c96444ea313485ed1118c5e43b2099cf1 (diff) |
Add and fix C++ runtime docs
Diffstat (limited to 'src/google/protobuf/arena.h')
-rw-r--r-- | src/google/protobuf/arena.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/google/protobuf/arena.h b/src/google/protobuf/arena.h index 58b1e126..0a5eacee 100644 --- a/src/google/protobuf/arena.h +++ b/src/google/protobuf/arena.h @@ -28,6 +28,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// This file defines an Arena allocator for better allocation performance. + #ifndef GOOGLE_PROTOBUF_ARENA_H__ #define GOOGLE_PROTOBUF_ARENA_H__ @@ -211,12 +213,10 @@ struct ArenaOptions { // // This protocol is implemented by all arena-enabled proto2 message classes as // well as RepeatedPtrField. - -#if __cplusplus >= 201103L -class LIBPROTOBUF_EXPORT Arena final { -#else +// +// Do NOT subclass Arena. This class will be marked as final when C++11 is +// enabled. class LIBPROTOBUF_EXPORT Arena { -#endif public: // Arena constructor taking custom options. See ArenaOptions below for // descriptions of the options available. |