diff options
| author | HampusM <hampus@hampusmat.com> | 2022-06-09 16:47:29 +0200 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2022-06-09 16:47:29 +0200 | 
| commit | 27ceb30d1f65d36e99b841055b9b9bd406a354cb (patch) | |
| tree | 22c99f24cf8f1c266048d786c1b8704476c12392 | |
| parent | 2f29451fa550514423bbba502827409114c5bc0e (diff) | |
refactor: put object type inside yacppdic namespace
| -rw-r--r-- | include/yacppdic/object_type.hpp | 5 | ||||
| -rw-r--r-- | src/object_type.cpp | 6 | 
2 files changed, 11 insertions, 0 deletions
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 <string_view>  #include <typeinfo> +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 <functional> +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 +  | 
