Skip to content

Commit

Permalink
Update single header
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbrindle authored and github-actions[bot] committed Aug 1, 2023
1 parent 61c7424 commit caa30bd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions single_include/flux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ namespace flux {

FLUX_EXPORT
struct unrecoverable_error : std::logic_error {
explicit unrecoverable_error(char const* msg) : std::logic_error(msg) {}
explicit inline unrecoverable_error(char const* msg) : std::logic_error(msg) {}
};

namespace detail {
Expand Down Expand Up @@ -231,7 +231,7 @@ FLUX_EXPORT inline constexpr auto runtime_error = detail::runtime_error_fn{};
namespace detail {

struct assert_fn {
constexpr void operator()(bool cond, char const* msg,
inline constexpr void operator()(bool cond, char const* msg,
std::source_location loc = std::source_location::current()) const
{
if (cond) {
Expand All @@ -243,7 +243,7 @@ struct assert_fn {
};

struct bounds_check_fn {
constexpr void operator()(bool cond, std::source_location loc = std::source_location::current()) const
inline constexpr void operator()(bool cond, std::source_location loc = std::source_location::current()) const
{
if (!std::is_constant_evaluated()) {
assert_fn{}(cond, "out of bounds sequence access", std::move(loc));
Expand Down Expand Up @@ -3985,7 +3985,7 @@ struct iota_sequence : inline_sequence_base<iota_sequence<T>> {
static constexpr iota_traits traits{.has_start = true, .has_end = false};

public:
constexpr explicit iota_sequence(T from)
inline constexpr explicit iota_sequence(T from)
: start_(std::move(from))
{}

Expand All @@ -4001,7 +4001,7 @@ struct bounded_iota_sequence : inline_sequence_base<bounded_iota_sequence<T>> {
static constexpr iota_traits traits{.has_start = true, .has_end = true};

public:
constexpr bounded_iota_sequence(T from, T to)
inline constexpr bounded_iota_sequence(T from, T to)
: start_(std::move(from)),
end_(std::move(to))
{}
Expand All @@ -4025,17 +4025,17 @@ struct iota_fn {
};

struct ints_fn {
constexpr auto operator()() const
inline constexpr auto operator()() const
{
return basic_iota_sequence<distance_t>();
}

constexpr auto operator()(distance_t from) const
inline constexpr auto operator()(distance_t from) const
{
return iota_sequence<distance_t>(from);
}

constexpr auto operator()(distance_t from, distance_t to) const
inline constexpr auto operator()(distance_t from, distance_t to) const
{
return bounded_iota_sequence<distance_t>(from, to);
}
Expand Down

0 comments on commit caa30bd

Please sign in to comment.