Skip to content

Commit

Permalink
Compensate for VS 16.7, part 2 (#7383)
Browse files Browse the repository at this point in the history
This is just the `noexcept` part of #7319, because the CI apparently got updated overnight.
  • Loading branch information
zadjii-msft committed Aug 24, 2020
1 parent 58efe79 commit 55b6ace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/buffer/out/UnicodeStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ void UnicodeStorage::StoreGlyph(const key_type key, const mapped_type& glyph)
// - erases key and its associated data from the storage
// Arguments:
// - key - the key to remove
// ~~~~~~~~~~~~~~
// NOTE: VS 16.7 changes std::map::erase to noexcept, but the build agents are still 16.6.5.
// Ignore this audit warning on your dev box until the build starts failing. Then fix it
// and remove this comment.
// ~~~~~~~~~~~~~
void UnicodeStorage::Erase(const key_type key)
void UnicodeStorage::Erase(const key_type key) noexcept
{
_map.erase(key);
}
Expand Down
2 changes: 1 addition & 1 deletion src/buffer/out/UnicodeStorage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class UnicodeStorage final

void StoreGlyph(const key_type key, const mapped_type& glyph);

void Erase(const key_type key);
void Erase(const key_type key) noexcept;

void Remap(const std::unordered_map<SHORT, SHORT>& rowMap, const std::optional<SHORT> width);

Expand Down

0 comments on commit 55b6ace

Please sign in to comment.