Type check pointer dereferencing

This commit is contained in:
2024-05-16 21:01:11 +02:00
parent 00b7c328b4
commit 8b6bf571cb
9 changed files with 185 additions and 9 deletions

View File

@ -7,6 +7,11 @@ namespace elna::source
{
}
std::size_t type::size() const noexcept
{
return this->byte_size;
}
primitive_type::primitive_type(const std::string& type_name, const std::size_t byte_size)
: type(byte_size), type_name(type_name)
{