commit | 452ea0d4d9f0c75065753ee04e1449f4c545955e | [log] [tgz] |
---|---|---|
author | brucedawson <brucedawson@chromium.org> | Wed Aug 09 10:00:11 2017 -0700 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Aug 09 17:00:11 2017 +0000 |
tree | 323f14fc9d6ceacd19da9df4718108038b4c4896 | |
parent | ac7edaab8afe57685bdb1025a4bc323306b7558d [diff] |
Workaround VC++ 2017 template bug When compiling webrtc's call.cc with VC++ 2017 (is_clang = false) the following compile error occurs: sequence_number_util.h(90): error C2672: 'rtc::SafeLt': no matching overloaded function found note: see reference to class template instantiation 'webrtc::SeqNumUnwrapper<T,M>' being compiled This error is not associated with any particular instantiation of SeqNumUnwrapper (there isn't one) and this undefined nature of 'T' seems to be what confuses the compiler. When it tries to locate SafeLt for an undefined type 'T' it gets confused. SafeLt is unnecessary in this context and changing it to use the '<' operator directly avoids the problem. The bug has been reported to Microsoft. BUG=chromium:753488 Review-Url: https://codereview.webrtc.org/2997623002 Cr-Commit-Position: refs/heads/master@{#19292}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.