From 46234171d134b4cbca15e276c4fdb1dfbbc70fbc Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 22 Mar 2020 21:15:12 -0700 Subject: Clean up some C++11-isms --- common/aloptional.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/aloptional.h') diff --git a/common/aloptional.h b/common/aloptional.h index 269cba0e..f19bc288 100644 --- a/common/aloptional.h +++ b/common/aloptional.h @@ -9,7 +9,7 @@ namespace al { -#define REQUIRES(...) bool rt_=true, typename std::enable_if::type = true +#define REQUIRES(...) bool rt_=true, std::enable_if_t = true struct nullopt_t { }; struct in_place_t { }; @@ -131,8 +131,8 @@ public: }; template -inline optional::type> make_optional(T&& arg) -{ return optional::type>{in_place, std::forward(arg)}; } +inline optional> make_optional(T&& arg) +{ return optional>{in_place, std::forward(arg)}; } template inline optional make_optional(Args&& ...args) -- cgit v1.2.3