diff --git a/include/flow/graph_builder.hpp b/include/flow/graph_builder.hpp index 22fadadf..472099aa 100644 --- a/include/flow/graph_builder.hpp +++ b/include/flow/graph_builder.hpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -20,7 +21,6 @@ #include #include #include -#include #include namespace flow { @@ -186,9 +186,9 @@ struct graph_builder { if (not g.empty()) { return {}; } - return std::optional{ - std::in_place, - std::span{std::cbegin(ordered_list), std::size(ordered_list)}}; + using span_t = + stdx::span; + return std::optional{std::in_place, span_t{ordered_list}}; } constexpr static void check_for_missing_nodes(auto nodes, diff --git a/include/flow/impl.hpp b/include/flow/impl.hpp index 203ee0ac..5338f2c8 100644 --- a/include/flow/impl.hpp +++ b/include/flow/impl.hpp @@ -5,11 +5,11 @@ #include #include +#include #include #include #include -#include #include namespace flow { @@ -60,8 +60,8 @@ template class impl { * * @see flow::builder */ - constexpr explicit(true) impl(std::span newMilestones) { - CIB_ASSERT(NumSteps >= std::size(newMilestones)); + constexpr explicit(true) + impl(stdx::span newMilestones) { if constexpr (loggingEnabled) { for (auto const &milestone : newMilestones) { functionPtrs.push_back(milestone.log_name); diff --git a/include/seq/impl.hpp b/include/seq/impl.hpp index da984ab8..c4c4407f 100644 --- a/include/seq/impl.hpp +++ b/include/seq/impl.hpp @@ -1,15 +1,14 @@ #pragma once -#include #include #include #include +#include #include #include #include -#include namespace seq { enum struct direction { FORWARD = 0, BACKWARD = 1 }; @@ -24,8 +23,7 @@ template struct impl { using node_t = rt_step; - constexpr explicit(true) impl(std::span steps) { - CIB_ASSERT(NumSteps >= std::size(steps)); + constexpr explicit(true) impl(stdx::span steps) { for (auto const &step : steps) { _forward_steps.push_back(step.forward_ptr); _backward_steps.push_back(step.backward_ptr);