diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-01 21:26:28 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-01 21:26:28 +0200 |
| commit | ffaf121d24428a9d822c1e3de512b9593be7aa0e (patch) | |
| tree | af8f619f0ec448fcec88a91d36d90698742314e1 /src | |
| parent | e0ff3b56c05225dd7da7d973af4c708966379a12 (diff) | |
| download | Project-Tick-ffaf121d24428a9d822c1e3de512b9593be7aa0e.tar.gz Project-Tick-ffaf121d24428a9d822c1e3de512b9593be7aa0e.zip | |
Implement CRTP for tag
Diffstat (limited to 'src')
| -rw-r--r-- | src/tag_compound.cpp | 15 | ||||
| -rw-r--r-- | src/tag_string.cpp | 15 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/tag_compound.cpp b/src/tag_compound.cpp index 1d4fd6d720..6aa12e64ff 100644 --- a/src/tag_compound.cpp +++ b/src/tag_compound.cpp @@ -84,21 +84,6 @@ tag_type tag_compound::get_type() const noexcept return type; } -std::unique_ptr<tag> tag_compound::move_clone() && -{ - return std::unique_ptr<tag>(new tag_compound(std::move(*this))); -} - -bool tag_compound::equals(const tag& rhs) const -{ - return *this == static_cast<const tag_compound&>(rhs); -} - -tag_compound& tag_compound::assign(tag&& rhs) -{ - return *this = dynamic_cast<tag_compound&&>(rhs); -} - bool operator==(const tag_compound& lhs, const tag_compound& rhs) { return lhs.tags == rhs.tags; diff --git a/src/tag_string.cpp b/src/tag_string.cpp index aade42768b..1f1e242e3a 100644 --- a/src/tag_string.cpp +++ b/src/tag_string.cpp @@ -72,21 +72,6 @@ tag_type tag_string::get_type() const noexcept return type; } -std::unique_ptr<tag> tag_string::move_clone() && -{ - return std::unique_ptr<tag>(new tag_string(std::move(*this))); -} - -bool tag_string::equals(const tag& rhs) const -{ - return *this == static_cast<const tag_string&>(rhs); -} - -tag_string& tag_string::assign(tag&& rhs) -{ - return *this = dynamic_cast<tag_string&&>(rhs); -} - bool operator==(const tag_string& lhs, const tag_string& rhs) { return lhs.get() == rhs.get(); |
