mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Some better naming for test.
This commit is contained in:
parent
80f11de41e
commit
eb3ee28cee
@ -34,7 +34,7 @@ namespace chaiscript
|
||||
class conversion_error
|
||||
{
|
||||
public:
|
||||
conversion_error(const Type_Info& t_to, const Type_Info& t_from, const utility::Static_String what): to(t_to),
|
||||
conversion_error(const Type_Info t_to, const Type_Info t_from, const utility::Static_String what): to(t_to),
|
||||
from(t_from), m_what(std::move(what)) {};
|
||||
|
||||
const char * what() const noexcept
|
||||
@ -42,8 +42,8 @@ namespace chaiscript
|
||||
return m_what.c_str();
|
||||
}
|
||||
|
||||
const Type_Info& to;
|
||||
const Type_Info& from;
|
||||
Type_Info to;
|
||||
Type_Info from;
|
||||
|
||||
private:
|
||||
utility::Static_String m_what;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user