DescriptionRename template parameter in callback from RunType to BindRunType.
The original code is correct. The fix is a work around for mips gcc 4.3.2.
The constructor of Callback is a template. In the context of the constructor, there are two type named RunType. One is its second template parameter, the other is a typedef inside Callback. The correct compiler will pick the "local" one, i.e. the template parameter. However, gcc 4.3.2 on mips incorrectly uses the typedef. The solution is to rename the template parameter.
After discussing with ajwong, we decide to push the work around up stream as it is cleaner not to shadow names anyways.
BUG=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151383
Patch Set 1 #Patch Set 2 : Modify .pump, regenerate .h from .pump. #
Total comments: 1
Patch Set 3 : Fixed comment in .pump. #Patch Set 4 : Fix comment according to CR's comment. #Messages
Total messages: 10 (0 generated)
|