WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
75287
Add a new WTF::bind overload that takes 6 parameters
https://bugs.webkit.org/show_bug.cgi?id=75287
Summary
Add a new WTF::bind overload that takes 6 parameters
Anders Carlsson
Reported
2011-12-27 19:19:43 PST
Add a new WTF::bind overload that takes 6 parameters
Attachments
Patch
(4.89 KB, patch)
2011-12-27 19:26 PST
,
Anders Carlsson
sam
: review+
andersca
: commit-queue+
Details
Formatted Diff
Diff
Playing with macros
(19.02 KB, patch)
2011-12-28 09:28 PST
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2011-12-27 19:26:55 PST
Created
attachment 120627
[details]
Patch
WebKit Review Bot
Comment 2
2011-12-27 19:29:12 PST
Attachment 120627
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/wtf/Functional.h:284: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/JavaScriptCore/wtf/Functional.h:469: Extra space before ( in function call [whitespace/parens] [4] Source/JavaScriptCore/wtf/Functional.h:589: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 3 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 3
2011-12-27 22:07:12 PST
Comment on
attachment 120627
[details]
Patch Any way we can make a macro that can do this for us?
Sam Weinig
Comment 4
2011-12-28 09:28:22 PST
Created
attachment 120681
[details]
Playing with macros I took a stab at using macros to simulate some of the variadic templating. Let me know how awful you think it is.
Anders Carlsson
Comment 5
2011-12-28 11:00:45 PST
(In reply to
comment #4
)
> Created an attachment (id=120681) [details] > Playing with macros > > I took a stab at using macros to simulate some of the variadic templating. Let me know how awful you think it is.
It's pretty awful :) What I'd like to do is have a variadic implementation in Functional.h and only use the gazillion specializations when the compiler doesn't support variadic templates. Something like #if !COMPILER_SUPPORTS(CXX_VARIADIC_TEMPLATES) #include "Functional.cxx98.h" #else // Real implementation #endif
Anders Carlsson
Comment 6
2011-12-28 11:16:49 PST
Committed
r103771
: <
http://trac.webkit.org/changeset/103771
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug