------- Comment #30 from pcarlini at suse dot de  2006-04-22 08:47 -------
(In reply to comment #28)

> template<typename _OutputIterator, typename _Size, typename _Tp>
> _OutputIterator
> fill_n(_OutputIterator __first, _Size __n, const _Tp& __value)
> {
> for (; __n > 0; --__n, ++__first)

[snip]

> template<typename W>
> void f(W* p) { fill_n(mine1::mini_iter<W>(p), 1, *p); }

[snip]

> template<typename T>
> T operator,(bar i, T t) { std::cerr << "interceptor\n"; return i; }

[snip]

> then the declaration does *not* intercept the STL, i.e. it does not fail.

No mistery, here, __n is an int, doesn't match bar of the overloaded operator,

Ok, let's close this one. Thanks and sorry about a bit of confusion on my part
in the first comments.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26974

Reply via email to