Skip to content

Commit

Permalink
Remove unused headers from gsl/pointers
Browse files Browse the repository at this point in the history
forward is already declared in utility, no need to include algorithm which is relativaly heavy
hash is already declared in memory, no need to bring brand-new header system_error for hash only
  • Loading branch information
knst committed May 30, 2024
1 parent b39e7e4 commit 7018630
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/gsl/pointers
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@

#include "assert" // for Ensures, Expects

#include <algorithm> // for forward
#include <cstddef> // for ptrdiff_t, nullptr_t, size_t
#include <memory> // for shared_ptr, unique_ptr
#include <system_error> // for hash
#include <memory> // for shared_ptr, unique_ptr, for hash
#include <type_traits> // for enable_if_t, is_convertible, is_assignable
#include <utility> // for declval
#include <utility> // for declval, for forward

#if !defined(GSL_NO_IOSTREAMS)
#include <iosfwd> // for ostream
Expand Down

0 comments on commit 7018630

Please sign in to comment.