Revert problematic pragma

This commit is contained in:
Victor Zverovich 2018-02-18 05:38:32 +00:00
parent 18ac98700e
commit 8ca3ab2c4c
2 changed files with 2 additions and 7 deletions

View File

@ -870,7 +870,8 @@ namespace internal {
template <typename Context, typename T>
class get_type {
public:
typedef decltype(make_value<Context>(std::declval<typename std::decay<T>::type&>())) value_type;
typedef decltype(make_value<Context>(
std::declval<typename std::decay<T>::type&>())) value_type;
static const type value = value_type::type_tag;
};

View File

@ -642,13 +642,7 @@ class null_terminating_iterator {
return ptr_ >= other.ptr_;
}
// 'fmt::internal::pointer_from': the inline specifier cannot be used
// when a friend declaration refers to a specialization of a function
// pointer_from is defined with the inline specifier, but declared without,
// so this looks like a bug in the compiler.
friend FMT_CONSTEXPR_DECL const Char *pointer_from<Char>(
# pragma warning(suppress: 4396)
null_terminating_iterator it);
private: