Made test output iterators have value_type of 'void'; matches ones in library

llvm-svn: 171980
This commit is contained in:
Marshall Clow 2013-01-09 17:20:02 +00:00
parent 1ae2248e14
commit 4476100a2f
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
int main()
{
}

View File

@ -11,7 +11,7 @@ class output_iterator
template <class U> friend class output_iterator;
public:
typedef std::output_iterator_tag iterator_category;
typedef typename std::iterator_traits<It>::value_type value_type;
typedef void value_type;
typedef typename std::iterator_traits<It>::difference_type difference_type;
typedef It pointer;
typedef typename std::iterator_traits<It>::reference reference;