This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 04/15/2014 08:29 PM, Jonathan Wakely wrote: > A minor simplification that removes a longstanding TODO note. > > Tested x86_64-linux, committed to trunk. > diff --git a/libstdc++-v3/include/bits/shared_ptr.h b/libstdc++-v3/include/bits/shared_ptr.h > index 081d3bd..104c869 100644 > --- a/libstdc++-v3/include/bits/shared_ptr.h > +++ b/libstdc++-v3/include/bits/shared_ptr.h > @@ -262,8 +262,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION > * @param __p A null pointer constant. > * @post use_count() == 0 && get() == nullptr > */ > - constexpr shared_ptr(nullptr_t __p) noexcept > - : __shared_ptr<_Tp>(__p) { } > + constexpr shared_ptr(nullptr_t __p) noexcept : shared_ptr() { } ^^^ Will this not cause unused parameter warning or some such? -- VZ
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |