Skip to content

Commit

Permalink
Mark noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
redorav committed May 24, 2024
1 parent 7ef05fd commit b23d1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/crstl/fixed_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ crstl_module_export namespace crstl

crstl_constexpr size_t max_size() const { return NumElements; }

crstl_constexpr14 void swap(this_type& v)
crstl_constexpr14 void swap(this_type& v) crstl_noexcept
{
// For small vectors, make a temporary copy directly on the stack, then copy it back
crstl_constexpr_if(sizeof(this_type) <= kMaxStack)
Expand Down

0 comments on commit b23d1d0

Please sign in to comment.