mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
refactor: expr_map_impl
now caches the value
This commit is contained in:
@ -534,8 +534,8 @@ template<template<typename> typename Proj, template<typename...> typename To, ty
|
||||
expr_type_projectable<Proj>... Dens>
|
||||
[[nodiscard]] consteval auto expr_map_impl(type_list<Nums...>, type_list<Dens...>)
|
||||
{
|
||||
return (OneType{} * ... * map_power(typename expr_type_map<Nums, Proj>::type{})) /
|
||||
(OneType{} * ... * map_power(typename expr_type_map<Dens, Proj>::type{}));
|
||||
return decltype(decltype((OneType{} * ... * map_power(typename expr_type_map<Nums, Proj>::type{}))){} /
|
||||
decltype((OneType{} * ... * map_power(typename expr_type_map<Dens, Proj>::type{}))){}){};
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user