This commit is contained in:
Guillaume Damiand 2020-03-18 08:36:07 +01:00
parent 650a7dcbc2
commit f3bb8f1100
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class Tee_for_output_iterator
public:
Tee_for_output_iterator(const OutputIterator& o) : o_it(o)
{ PTR = (Rep*) new _Tee_for_output_iterator_rep<T>(); }
{ PTR.p = (Rep*) new _Tee_for_output_iterator_rep<T>(); }
Tee_for_output_iterator<OutputIterator,T>&
operator=(const T& value)
@ -82,7 +82,7 @@ public:
_Tee_for_output_iterator_rep<T>*
ptr()
{ return (_Tee_for_output_iterator_rep<T>*)PTR; }
{ return (_Tee_for_output_iterator_rep<T>*)(PTR.p); }
protected:
OutputIterator o_it;