From 5ed8e4e2e4cc5f9113e3b9b04433b395acb83ca9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 4 Jan 2011 17:08:57 +0000 Subject: [PATCH] Attempt to make wxCompositeWindow<> compile with MSVC6. Blind attempt to work around VC6 error about ambiguity between "const T&" and "T" in DoSetForAllParts() template function. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/compositewin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/compositewin.h b/include/wx/compositewin.h index a4477e03f2..9d12ee6fad 100644 --- a/include/wx/compositewin.h +++ b/include/wx/compositewin.h @@ -90,7 +90,7 @@ private: virtual wxWindowList GetCompositeWindowParts() const = 0; template - void DoSetForAllParts(bool (wxWindowBase::*func)(const T&), const T& arg) + void DoSetForAllParts(bool (wxWindowBase::*func)(const T&), T arg) { // Simply call the setters for all parts of this composite window. const wxWindowList parts = GetCompositeWindowParts(); -- 2.50.0