summaryrefslogtreecommitdiffstats
path: root/libcxx/include/experimental/iterator
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-07 11:27:06 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-07 11:27:06 +0000
commit5741d86d112047f839fade3547ada3afaf495b17 (patch)
tree513f889e7c1024b4bd41283d96e6725846c8d6a5 /libcxx/include/experimental/iterator
parentf62eb6b29a9fecc1822853fdb393dbad60010560 (diff)
downloadbcm5719-llvm-5741d86d112047f839fade3547ada3afaf495b17.tar.gz
bcm5719-llvm-5741d86d112047f839fade3547ada3afaf495b17.zip
Replace identifiers called `__out` because Windows.h #defines it.
Windows is greedy and it defines the identifier `__out` as a macro. This patch renames all conflicting libc++ identifiers in order to correctly work on Windows. llvm-svn: 291345
Diffstat (limited to 'libcxx/include/experimental/iterator')
-rw-r--r--libcxx/include/experimental/iterator10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/include/experimental/iterator b/libcxx/include/experimental/iterator
index da593febe2b..37186b3d0b3 100644
--- a/libcxx/include/experimental/iterator
+++ b/libcxx/include/experimental/iterator
@@ -75,19 +75,19 @@ public:
typedef void reference;
ostream_joiner(ostream_type& __os, _Delim&& __d)
- : __out(_VSTD::addressof(__os)), __delim(_VSTD::move(__d)), __first(true) {}
+ : __output(_VSTD::addressof(__os)), __delim(_VSTD::move(__d)), __first(true) {}
ostream_joiner(ostream_type& __os, const _Delim& __d)
- : __out(_VSTD::addressof(__os)), __delim(__d), __first(true) {}
+ : __output(_VSTD::addressof(__os)), __delim(__d), __first(true) {}
template<typename _Tp>
ostream_joiner& operator=(const _Tp& __v)
{
if (!__first)
- *__out << __delim;
+ *__output << __delim;
__first = false;
- *__out << __v;
+ *__output << __v;
return *this;
}
@@ -96,7 +96,7 @@ public:
ostream_joiner& operator++(int) _NOEXCEPT { return *this; }
private:
- ostream_type* __out;
+ ostream_type* __output;
_Delim __delim;
bool __first;
};
OpenPOWER on IntegriCloud