From 6839736b8283a59eb743e1f6058c7d266a3e7f36 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Tue, 28 Jun 2022 12:17:48 -0700 Subject: Changeset: 78 Replace "class" keyword in templates with "typename" --- source/10-common/YCombinator.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/10-common/YCombinator.hpp') diff --git a/source/10-common/YCombinator.hpp b/source/10-common/YCombinator.hpp index b1d2350..2da06c8 100644 --- a/source/10-common/YCombinator.hpp +++ b/source/10-common/YCombinator.hpp @@ -1,11 +1,11 @@ #pragma once -template +template struct YCombinator { // NOTE: implicit constructor allows initializing this Func func; - template + template decltype(auto) operator()(Ts&&... args) const { // NOTE: static_cast(args)... is equivalent to std::forward(args)... // written this way so that we don't have to include , as well as reducing template instanciations to help compile time -- cgit v1.2.3-70-g09d2