Fix MSVC build, take 2

This commit is contained in:
Victor Zverovich
2018-07-04 13:17:03 -07:00
parent e928b6724c
commit 479ee2a8c6
9 changed files with 44 additions and 30 deletions
+9 -3
View File
@@ -1423,13 +1423,19 @@ class mock_arg_formatter:
EXPECT_CALL(*this, call(42));
}
using base::operator();
iterator operator()(int value) {
template <typename T>
typename std::enable_if<std::is_integral<T>::value, iterator>::type
operator()(T value) {
call(value);
return base::operator()(value);
}
template <typename T>
typename std::enable_if<!std::is_integral<T>::value, iterator>::type
operator()(T value) {
return base::operator()(value);
}
iterator operator()(fmt::basic_format_arg<fmt::format_context>::handle) {
return base::operator()(fmt::monostate());
}