This commit is contained in:
FURUHASHI Sadayuki
2012-12-20 10:39:47 -08:00
parent 754126644f
commit 85d65c59d2
20 changed files with 12 additions and 2161 deletions

View File

@@ -1,7 +1,7 @@
//
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2008-2009 FURUHASHI Sadayuki
// Copyright (C) 2008-2010 FURUHASHI Sadayuki
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -124,6 +124,16 @@ private:
with_zone();
};
class managed_object : public object, private zone {
public:
managed_object() { }
~managed_object() { }
public:
zone& get_zone() { return *(zone*)this; }
const zone& get_zone() const { return *(const zone*)this; }
private:
managed_object(const managed_object&);
};
bool operator==(const object x, const object y);
bool operator!=(const object x, const object y);