refactor: usage of v for the function argument name changed to prevent shadowing errors
This commit is contained in:
1 parent
73ad1f08d4
commit
1ee824423e
6 files changed
+44
-44
No files matched your search
@@ -129,8 +129,8 @@ std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>&
|
||||
template<typename T, typename Validator, typename Char>
|
||||
struct MP_UNITS_STD_FMT::formatter<validated_type<T, Validator>, Char> : formatter<T, Char> {
|
||||
template<typename FormatContext>
|
||||
auto format(const validated_type<T, Validator>& v, FormatContext& ctx) const -> decltype(ctx.out())
|
||||
auto format(const validated_type<T, Validator>& val, FormatContext& ctx) const -> decltype(ctx.out())
|
||||
{
|
||||
return formatter<T, Char>::format(v.value(), ctx);
|
||||
return formatter<T, Char>::format(val.value(), ctx);
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user