| Summary: | std::bind not compiling with Visual Studio | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alex Christensen <alex.christensen> | ||||||||
| Component: | Web Template Framework | Assignee: | Nobody <webkit-unassigned> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | agomez, benjamin, calvaris, cgarcia, cmarcelo, commit-queue, eric.carlson, glenn, gustavo, jer.noble, menard, mrobinson, philipj, pnormand, sergio, vjaquez | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Alex Christensen
2014-03-31 20:33:55 PDT
Created attachment 228236 [details]
Patch
Created attachment 228238 [details]
Patch
Comment on attachment 228238 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=228238&action=review We use the versions with the bool function to decide whether to use g_idle or g_timeout, if you remove the versions receiving a bool function it's impossible to implement a repeating source. I guess the problem with visual studio is that the compiler doesn't know which one to use, so a possible workaround would be to add a cast in the callers, see the discussion here: https://bugs.webkit.org/show_bug.cgi?id=130027#c15 > Source/WTF/ChangeLog:4 > + [WinCairo] Build fix after r166496. > + https://bugs.webkit.org/show_bug.cgi?id=131006 Removing the code that doesn't build for you is not a build fix :-) > Removing the code that doesn't build for you is not a build fix :-)
That's why it was a shot in the dark. I was just hoping that nobody would ever need to use the bool version :)
I added some std::function<void ()> constructors. I was going to add static_casts, but I think this is a better solution.
Created attachment 228311 [details]
Patch
Comment on attachment 228311 [details]
Patch
Thanks for confirming that was indeed the problem, and sorry for the build break.
Comment on attachment 228311 [details] Patch Clearing flags on attachment: 228311 Committed r166643: <http://trac.webkit.org/changeset/166643> All reviewed patches have been landed. Closing bug. |