]> git.saurik.com Git - wxWidgets.git/commit
Add wxWeakRef::element_type, remove unnecessary assignment operator.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Apr 2010 18:13:23 +0000 (18:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Apr 2010 18:13:23 +0000 (18:13 +0000)
commitfc4e23d7c1cb43cd29648dd0b8d72770e2da1176
tree4283d829ecfd9afbe7b49021be95924f15c75eed
parent72a0d0fc95e8aba079a8c36aeb7cee193fbcf1ae
Add wxWeakRef::element_type, remove unnecessary assignment operator.

Define element_type for consistency with other classes (wxSharedPtr, weak_ptr)
and to allow accessing the type from the template code.

Also remove the apparently unnecessary template assignment operator:
assignment from an expression convertible to type T* works even without it and
while assigning something implicitly convertible to T* wouldn't work now, it's
for the best as we don't want to rely on such implicit conversions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/weakref.h
interface/wx/weakref.h