This commit is contained in:
Timur A. Fatkhullin
2026-09-07 23:24:34 +03:00
parent 9599015320
commit af100b6b01

View File

@@ -462,11 +462,13 @@ public:
template <typename VT, typename UT>
requires requires(VT v, UT u) { u = v; }
inline static auto trivial_conv_from = [](VT const& val) -> hmap_expected_t<UT> { return static_cast<UT>(val); };
inline static std::function<hmap_expected_t<UT>(VT const&)> trivial_conv_from =
[](VT const& val) -> hmap_expected_t<UT> { return static_cast<UT>(val); };
template <typename VT, typename UT>
requires requires(VT v, UT u) { v = u; }
inline static auto trivial_conv_to = [](UT const& uval) -> hmap_expected_t<VT> { return static_cast<VT>(uval); };
inline static std::function<hmap_expected_t<VT>(UT const&)> trivial_conv_to =
[](UT const& uval) -> hmap_expected_t<VT> { return static_cast<VT>(uval); };
hmap() = default;