Changeset 102839 in webkit
- Timestamp:
- Dec 14, 2011 3:55:12 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r102836 r102839 1 2011-12-14 Anders Carlsson <andersca@apple.com> 2 3 Work around a bug in the MSVC2005 compiler 4 https://bugs.webkit.org/show_bug.cgi?id=74550 5 6 Reviewed by Sam Weinig. 7 8 Add template parameters for the return types of the partial specializations of BoundFunctionImpl. 9 10 * wtf/Functional.h: 11 (WTF::R): 12 1 13 2011-12-13 Jon Lee <jonlee@apple.com> 2 14 -
trunk/Source/JavaScriptCore/wtf/Functional.h
r102813 r102839 150 150 class BoundFunctionImpl; 151 151 152 template<typename FunctionWrapper > class BoundFunctionImpl<FunctionWrapper, typename FunctionWrapper::ResultType()> : public FunctionImpl<typename FunctionWrapper::ResultType ()> {152 template<typename FunctionWrapper, typename R> class BoundFunctionImpl<FunctionWrapper, R ()> : public FunctionImpl<typename FunctionWrapper::ResultType ()> { 153 153 public: 154 154 explicit BoundFunctionImpl(FunctionWrapper functionWrapper) … … 157 157 } 158 158 159 virtual typename FunctionWrapper::ResultTypeoperator()()159 virtual R operator()() 160 160 { 161 161 return m_functionWrapper(); … … 166 166 }; 167 167 168 template<typename FunctionWrapper, typename P0> class BoundFunctionImpl<FunctionWrapper, typename FunctionWrapper::ResultType(P0)> : public FunctionImpl<typename FunctionWrapper::ResultType ()> {168 template<typename FunctionWrapper, typename R, typename P0> class BoundFunctionImpl<FunctionWrapper, R (P0)> : public FunctionImpl<typename FunctionWrapper::ResultType ()> { 169 169 170 170 public: … … 175 175 } 176 176 177 virtual typename FunctionWrapper::ResultTypeoperator()()177 virtual R operator()() 178 178 { 179 179 return m_functionWrapper(m_p0); … … 185 185 }; 186 186 187 template<typename FunctionWrapper, typename P0, typename P1> class BoundFunctionImpl<FunctionWrapper, typename FunctionWrapper::ResultType(P0, P1)> : public FunctionImpl<typename FunctionWrapper::ResultType ()> {187 template<typename FunctionWrapper, typename R, typename P0, typename P1> class BoundFunctionImpl<FunctionWrapper, R (P0, P1)> : public FunctionImpl<typename FunctionWrapper::ResultType ()> { 188 188 public: 189 189 BoundFunctionImpl(FunctionWrapper functionWrapper, const P0& p0, const P1& p1) -
trunk/Tools/ChangeLog
r102824 r102839 1 2011-12-14 Anders Carlsson <andersca@apple.com> 2 3 Work around a bug in the MSVC2005 compiler 4 https://bugs.webkit.org/show_bug.cgi?id=74550 5 6 Reviewed by Sam Weinig. 7 8 Re-enable tests. 9 10 * TestWebKitAPI/Tests/WTF/Functional.cpp: 11 1 12 2011-12-14 Csaba Osztrogonác <ossy@webkit.org> 2 13 -
trunk/Tools/TestWebKitAPI/Tests/WTF/Functional.cpp
r102821 r102839 28 28 29 29 namespace TestWebKitAPI { 30 31 #if !COMPILER(MSVC)32 30 33 31 static int returnFortyTwo() … … 108 106 } 109 107 110 #endif // !COMPILER(MSVC)111 112 108 } // namespace TestWebKitAPI
Note: See TracChangeset
for help on using the changeset viewer.