<div dir="ltr"><p>Hi Marshall<br> <br>When I look at my patch (the one that doesn't include the kitchen sink) on my machine it refers to this routine:<br> <br>// line 1438:<br><br>+#if _LIBCPP_STD_VER > 11 // added by me.<br>
<br>template <class _Tp, class _Allocator><br><br>deque<_Tp, _Allocator>::deque(size_type __n, const _Allocator& __a)<br><br>: __base(__a)<br><br>{<br><br>if (__n > 0)<br><br>__append(__n);<br><br>}<br>
+#endif // added by me because otherwise there's no matching declaration.<br> <br>For which the explicit constructor has the same #if _LIBCPP_STD_VER > 11<br> <br>// The constructor is on line 1213 in my file.<br><br>
#if _LIBCPP_STD_VER > 11<br><br>explicit deque(size_type __n, const _Allocator& __a);<br><br>#endif </p><div> </div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 1:33 PM, Marshall Clow <span dir="ltr"><<a href="mailto:mclow.lists@gmail.com" target="_blank">mclow.lists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Oct 8, 2013, at 4:56 PM, G M <<a href="mailto:gmisocpp@gmail.com">gmisocpp@gmail.com</a>> wrote:<br>

<br>
> patch intended (ironically) to fix a possible versioning mistake.<br>
</div>> <deque.diff><br>
<br>
It would be easier for me (in the future) if you'ld add a bit more context here.<br>
[ Note: You are not alone in this; I have failed to explain what I'm trying to achieve with a patch, too ]<br>
<br>
But, looking at your patch, it appears that you want to wrap the following routine<br>
<br>
template <class _Tp, class _Allocator><br>
template <class _InputIter><br>
void<br>
deque<_Tp, _Allocator>::assign(_InputIter __f, _InputIter __l,<br>
                               typename enable_if<__is_input_iterator<_InputIter>::value &&<br>
                                                 !__is_random_access_iterator<_InputIter>::value>::type*)<br>
{<br>
…<br>
}<br>
<br>
in an<br>
#if _LIBCPP_STD_VER > 11<br>
#endif<br>
<br>
block. Is this correct?<br>
<br>
If so, I think you are mistaken, since my copy of the C++11 standard (N3290) shows the following routine for deque:<br>
         template <class InputIterator><br>
           void assign(InputIterator first, InputIterator last);<br>
<br>
<br>
What makes you think that this routine did not exist in C++11?<br>
<br>
-- Marshall<br>
<br>
Marshall Clow     Idio Software   <mailto:<a href="mailto:mclow.lists@gmail.com">mclow.lists@gmail.com</a>><br>
<br>
A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).<br>
        -- Yu Suzuki<br>
<br>
</blockquote></div><br></div>