From 27ceb30d1f65d36e99b841055b9b9bd406a354cb Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 9 Jun 2022 16:47:29 +0200 Subject: refactor: put object type inside yacppdic namespace --- include/yacppdic/object_type.hpp | 5 +++++ src/object_type.cpp | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/include/yacppdic/object_type.hpp b/include/yacppdic/object_type.hpp index c1e2e27..b33bb33 100644 --- a/include/yacppdic/object_type.hpp +++ b/include/yacppdic/object_type.hpp @@ -3,6 +3,9 @@ #include #include +namespace yacppdic +{ + class BaseObjectType { public: @@ -42,3 +45,5 @@ class ObjectTypeHasher public: auto operator()(const BaseObjectType &object_type) const noexcept -> std::size_t; }; + +} // namespace yacppdic diff --git a/src/object_type.cpp b/src/object_type.cpp index ee0fe66..bd61e09 100644 --- a/src/object_type.cpp +++ b/src/object_type.cpp @@ -4,6 +4,9 @@ #include +namespace yacppdic +{ + BaseObjectType::BaseObjectType(const std::type_info &type_info) noexcept : _type_info(type_info) { @@ -45,3 +48,6 @@ auto ObjectTypeHasher::operator()(const BaseObjectType &object_type) const noexc { return object_type.hash(); } + +} // namespace yacppdic + -- cgit v1.2.3-18-g5258