Skip to content

Commit

Permalink
Improve check for <span>
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoenm committed Oct 6, 2023
1 parent 42353e2 commit 4dd87a1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions inc/goldfish/array_ref.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
#pragma once

#if defined(__clang__) && __clang_major__ >= 9 && defined(_LIBCPP_VERSION)
#define __cpp_lib_span 201902L
#endif // defined(__clang__) && __clang_major__ >= 9

#include <array>
#include <cassert>
#include <iterator>
#include <vector>
#include <version>

#ifdef __cpp_lib_span
#ifdef __has_include(<span>)
#include <span>
#else
#include <span-lite/span.hpp>
Expand Down

0 comments on commit 4dd87a1

Please sign in to comment.