Skip to content

Commit

Permalink
fix: optimize includes in gsl/pointer.h to speed up compile time
Browse files Browse the repository at this point in the history
it removes:
 - algorithm: `forward` is a part of utility not algorithm
 - system_error: `hash` is already declared in memory
  • Loading branch information
knst committed Aug 26, 2024
1 parent d5e32e1 commit dc59cbc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/gsl/pointers.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@
#include <gsl/assert.h> // for Ensures, Expects
#include <source_location.h>

#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, hash
#include <type_traits> // for enable_if_t, is_convertible, is_assignable
#include <utility> // for declval
#include <utility> // for declval, forward

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

0 comments on commit dc59cbc

Please sign in to comment.