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

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@171980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow 2013-01-09 17:20:02 +00:00
parent 83e2c4d877
commit 304c31b355
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;