Fix msvc warnings

This commit is contained in:
Victor Zverovich
2018-04-04 21:11:31 -07:00
parent 1e747f603f
commit 5859e58ba1
2 changed files with 11 additions and 9 deletions
+2 -2
View File
@@ -1804,9 +1804,9 @@ struct arg_ref {
FMT_CONSTEXPR explicit arg_ref(unsigned index) : kind(INDEX), index(index) {}
explicit arg_ref(basic_string_view<Char> name) : kind(NAME), name(name) {}
FMT_CONSTEXPR arg_ref &operator=(unsigned index) {
FMT_CONSTEXPR arg_ref &operator=(unsigned idx) {
kind = INDEX;
this->index = index;
index = idx;
return *this;
}