Chromium Code Reviews
DescriptionFix compile error on simple chrome.
Under C++11, NVRO can happen when a return's expression
has the function's return type.
Here, those are different (although FakeArcBridgeBootstrap
inherits ArcBridgeBootstrap), thus explicit std::move()
should be here.
Note, C++17 or later, the condition is relaxed and NVRO
becomes mandatory, so the old code should work, though.
cf): C++11 n3337/12.8/32, C++17 n4594/12.8/32
BUG=633258
TEST=Ran bots. Build component_unittests under simple chrome env.
Committed: https://crrev.com/778baa7c83b7c45eee055f53ac445cdeba5cfbdd
Cr-Commit-Position: refs/heads/master@{#423436}
Patch Set 1 #
Messages
Total messages: 14 (9 generated)
|
|||||||||||||||||||