fix: static linkage removed from random functions

This commit is contained in:
Mateusz Pusz
2023-09-24 19:34:21 +02:00
parent a356db749e
commit 9224fc511a

View File

@@ -29,8 +29,9 @@
namespace mp_units { namespace mp_units {
namespace detail { namespace detail {
template<Quantity Q, typename InputIt> template<Quantity Q, typename InputIt>
static std::vector<typename Q::rep> i_qty_to_rep(InputIt first, InputIt last) std::vector<typename Q::rep> i_qty_to_rep(InputIt first, InputIt last)
{ {
std::vector<typename Q::rep> intervals_rep; std::vector<typename Q::rep> intervals_rep;
intervals_rep.reserve(static_cast<size_t>(std::distance(first, last))); intervals_rep.reserve(static_cast<size_t>(std::distance(first, last)));
@@ -41,7 +42,7 @@ static std::vector<typename Q::rep> i_qty_to_rep(InputIt first, InputIt last)
} }
template<Quantity Q> template<Quantity Q>
static std::vector<typename Q::rep> bl_qty_to_rep(std::initializer_list<Q>& bl) std::vector<typename Q::rep> bl_qty_to_rep(std::initializer_list<Q>& bl)
{ {
std::vector<typename Q::rep> bl_rep; std::vector<typename Q::rep> bl_rep;
bl_rep.reserve(bl.size()); bl_rep.reserve(bl.size());
@@ -52,7 +53,7 @@ static std::vector<typename Q::rep> bl_qty_to_rep(std::initializer_list<Q>& bl)
} }
template<Quantity Q, typename UnaryOperation> template<Quantity Q, typename UnaryOperation>
inline static std::vector<typename Q::rep> fw_bl_pwc(std::initializer_list<Q>& bl, UnaryOperation fw) std::vector<typename Q::rep> fw_bl_pwc(std::initializer_list<Q>& bl, UnaryOperation fw)
{ {
using rep = MP_UNITS_TYPENAME Q::rep; using rep = MP_UNITS_TYPENAME Q::rep;
std::vector<rep> w_bl; std::vector<rep> w_bl;
@@ -70,7 +71,7 @@ inline static std::vector<typename Q::rep> fw_bl_pwc(std::initializer_list<Q>& b
} }
template<Quantity Q, typename UnaryOperation> template<Quantity Q, typename UnaryOperation>
static std::vector<typename Q::rep> fw_bl_pwl(std::initializer_list<Q>& bl, UnaryOperation fw) std::vector<typename Q::rep> fw_bl_pwl(std::initializer_list<Q>& bl, UnaryOperation fw)
{ {
std::vector<typename Q::rep> weights; std::vector<typename Q::rep> weights;
weights.reserve(bl.size()); weights.reserve(bl.size());