Skip to content

Commit dc59cbc

Browse files
committed
fix: optimize includes in gsl/pointer.h to speed up compile time
it removes: - algorithm: `forward` is a part of utility not algorithm - system_error: `hash` is already declared in memory
1 parent d5e32e1 commit dc59cbc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/gsl/pointers.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020
#include <gsl/assert.h> // for Ensures, Expects
2121
#include <source_location.h>
2222

23-
#include <algorithm> // for forward
2423
#include <cstddef> // for ptrdiff_t, nullptr_t, size_t
25-
#include <memory> // for shared_ptr, unique_ptr
26-
#include <system_error> // for hash
24+
#include <memory> // for shared_ptr, unique_ptr, hash
2725
#include <type_traits> // for enable_if_t, is_convertible, is_assignable
28-
#include <utility> // for declval
26+
#include <utility> // for declval, forward
2927

3028
#if !defined(GSL_NO_IOSTREAMS)
3129
#include <iosfwd> // for ostream

0 commit comments

Comments
 (0)