Changeset 225896 in webkit
- Timestamp:
- Dec 14, 2017 12:17:56 AM (6 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r225857 r225896 1 2017-12-12 Yusuke Suzuki <utatane.tea@gmail.com> 2 3 REGRESSION(r225769): Build errors with constexpr std::tie on older gcc 4 https://bugs.webkit.org/show_bug.cgi?id=180692 5 6 Reviewed by Carlos Garcia Campos. 7 8 Due to libstdc++'s bug[1], std::tie is not annotated with constexpr in libstdc++ 5. 9 This patch adds WTF::tie for a work around. Since we do not want to 10 include <tuple> in StdLibExtras.h, we define this function for all 11 the compilers. 12 13 [1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65978 14 15 * wtf/StdLibExtras.h: 16 1 17 2017-12-13 Mark Lam <mark.lam@apple.com> 2 18 -
trunk/Source/WTF/wtf/StdLibExtras.h
r225672 r225896 446 446 } 447 447 448 // libstdc++5 does not have constexpr std::tie. Since we cannot redefine std::tie with constexpr, we define WTF::tie instead. 449 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65978 450 template <class ...Args> 451 inline constexpr std::tuple<Args&...> tie(Args&... values) noexcept 452 { 453 return std::tuple<Args&...>(values...); 454 } 455 448 456 } // namespace WTF 449 457 -
trunk/Source/WebCore/ChangeLog
r225885 r225896 1 2017-12-12 Yusuke Suzuki <utatane.tea@gmail.com> 2 3 REGRESSION(r225769): Build errors with constexpr std::tie on older gcc 4 https://bugs.webkit.org/show_bug.cgi?id=180692 5 6 Reviewed by Carlos Garcia Campos. 7 8 * platform/graphics/FontSelectionAlgorithm.h: 9 (WebCore::FontSelectionRange::operator== const): 10 (WebCore::FontSelectionRequest::tied const): 11 (WebCore::FontSelectionCapabilities::tied const): 12 (WebCore::FontSelectionSpecifiedCapabilities:: const): 13 1 14 2017-12-13 Daniel Bates <dabates@apple.com> 2 15 -
trunk/Source/WebCore/platform/graphics/FontSelectionAlgorithm.h
r225769 r225896 284 284 constexpr bool operator==(const FontSelectionRange& other) const 285 285 { 286 return std::tie(minimum, maximum) == std::tie(other.minimum, other.maximum);286 return WTF::tie(minimum, maximum) == WTF::tie(other.minimum, other.maximum); 287 287 } 288 288 … … 335 335 constexpr std::tuple<Value, Value, Value> tied() const 336 336 { 337 return std::tie(weight, width, slope);337 return WTF::tie(weight, width, slope); 338 338 } 339 339 … … 372 372 constexpr std::tuple<Range, Range, Range> tied() const 373 373 { 374 return std::tie(weight, width, slope);374 return WTF::tie(weight, width, slope); 375 375 } 376 376 … … 420 420 constexpr std::tuple<OptionalRange&, OptionalRange&, OptionalRange&> tied() 421 421 { 422 return std::tie(weight, width, slope);422 return WTF::tie(weight, width, slope); 423 423 } 424 424 425 425 constexpr std::tuple<const OptionalRange&, const OptionalRange&, const OptionalRange&> tied() const 426 426 { 427 return std::tie(weight, width, slope);427 return WTF::tie(weight, width, slope); 428 428 } 429 429
Note: See TracChangeset
for help on using the changeset viewer.