mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-17 21:51:20 +02:00
Fix a deprecation warning about std::result_of_t
We still have one about std::char_traits<unsigned char> (indirectly through std::basic_string_view) though, but our lord and savouir mniip said we can migrate off of it once we're c++20.
This commit is contained in:
@@ -1386,7 +1386,7 @@ static int sim_decoSpace(lua_State *L)
|
|||||||
template<class Accessor>
|
template<class Accessor>
|
||||||
struct LuaBlockMapHelper
|
struct LuaBlockMapHelper
|
||||||
{
|
{
|
||||||
using ItemType = std::remove_reference_t<std::result_of_t<Accessor(Vec2<int>)>>;
|
using ItemType = std::remove_reference_t<std::invoke_result_t<Accessor, Vec2<int>>>;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<bool Clamp, class Accessor, class ItemType = typename LuaBlockMapHelper<Accessor>::ItemType>
|
template<bool Clamp, class Accessor, class ItemType = typename LuaBlockMapHelper<Accessor>::ItemType>
|
||||||
|
Reference in New Issue
Block a user