[SmallVector] Reinstate the typedefs.

They're unused with recent versions of libstdc++ but older ones
(e.g. libstdc++ 4.9 still requires them). Maybe we should bump
the requirements on the minimum version to make GCC 7 happy, but
in the meanwhile we need to live with the warning.

llvm-svn: 305158
This commit is contained in:
Davide Italiano 2017-06-10 23:18:32 +00:00
parent 77485bc89b
commit d87d9e906b
1 changed files with 3 additions and 0 deletions

View File

@ -446,6 +446,9 @@ TYPED_TEST(SmallVectorTest, AppendRepeatedNonForwardIterator) {
struct output_iterator { struct output_iterator {
typedef std::output_iterator_tag iterator_category; typedef std::output_iterator_tag iterator_category;
typedef int value_type; typedef int value_type;
typedef int difference_type;
typedef value_type *pointer;
typedef value_type &reference;
operator int() { return 2; } operator int() { return 2; }
operator Constructable() { return 7; } operator Constructable() { return 7; }
}; };