aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/yacppdic/object_type.hpp5
-rw-r--r--src/object_type.cpp6
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
+