• Stephan Hartmann's avatar
    GCC: make base::{flat_map,flat_tree} move assignement operators noexcept · 911bdcd8
    Stephan Hartmann authored
    Move assigment operator in ui::ColorSet is noexcept. Because this
    class has a member of type base::flat_map, move assignment operators
    of base::flat_map and base::flat_tree must be noexcept too.
    base::flat_tree noexcept is conditional to avoid build failure with
    NaCl.
    
    Otherwise GCC fails like this:
    
    ../../ui/color/color_set.cc:14:11: error: function
    'ui::ColorSet& ui::ColorSet::operator=(ui::ColorSet&&)' defaulted on its
    redeclaration with an exception-specification that differs from the
    implicit exception-specification ''
       14 | ColorSet& ColorSet::operator=(ColorSet&&) noexcept = default;
          |           ^~~~~~~~
    
    Bug: 819294
    Change-Id: I10ce31851effc9ce78f2b5cbbb7148c339f065a7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2179245
    Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
    Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#772175}
    911bdcd8
flat_tree.h 35.2 KB