Implement division
This commit is contained in:
@ -2,24 +2,18 @@
|
||||
|
||||
namespace elna::source
|
||||
{
|
||||
error::error(const char *message, const source::position position) noexcept
|
||||
error::error(const position position)
|
||||
: m_position(position)
|
||||
{
|
||||
this->message = message;
|
||||
this->position = position;
|
||||
}
|
||||
|
||||
char const *error::what() const noexcept
|
||||
{
|
||||
return this->message;
|
||||
}
|
||||
|
||||
std::size_t error::line() const noexcept
|
||||
{
|
||||
return this->position.line;
|
||||
return this->m_position.line;
|
||||
}
|
||||
|
||||
std::size_t error::column() const noexcept
|
||||
{
|
||||
return this->position.column;
|
||||
return this->m_position.column;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user