Rename val to m_val

This commit is contained in:
Eric Wieser 2022-07-13 07:45:35 +01:00 committed by GitHub
parent c5075348e8
commit a11691680d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,14 +36,14 @@ using nlohmann::json;
template<typename T>
class wrapped_int
{
T m_val;
public:
T val;
operator T() const
{
return val;
return m_val;
}
wrapped_int() = default;
explicit wrapped_int(T val) : val(val) {}
explicit wrapped_int(T val) : m_val(val) {}
// allow implicit conversions from anything that `T` allows conversions from
template<typename T2, typename = typename std::enable_if<std::is_convertible<T2, T>::value>::type>